
andy7t
User
Sep 18, 2003, 11:27 AM
Post #1 of 3
(983 views)
|
Hello, I'm making a little Mini Browser out of perl, in which the user can type an address, and then it user gets the page displayed (on my address). This is what i've got: Hello, Sorry for that request i worked out how to do it but this another problem: use LWP::Simple; print "Content-Type:text/html\n\n"; $url="$ENV{'QUERY_STRING'}"; $content = get($url); print "$content\n"; However, i always get broken images because it is looking on my server for the images. How do i get the <IMG> tags in $content to have the first part of the $url (i.e www.site.com), then the image URL. The same for Stylesheets also is needed. However, something a little differenet is needed for <A> tags. How do i get it to say <a href=http://www.mysite.com/cgi-bin/geturl.cgi?LINK>? Thanks Andrew
|