CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Mini Browser

 



andy7t
User

Sep 18, 2003, 11:27 AM

Post #1 of 3 (511 views)
Mini Browser Can't Post

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


KevinR
Veteran


Sep 18, 2003, 1:52 PM

Post #2 of 3 (509 views)
Re: [andy7t] Mini Browser [In reply to] Can't Post

I would just use a frameset document to display the other webpage in your website, or an iframe.
-------------------------------------------------


Owen
Novice

Sep 18, 2003, 4:57 PM

Post #3 of 3 (506 views)
Re: [andy7t] Mini Browser [In reply to] Can't Post

# G'day andy7t. (Do you have a brother called andy)?! I don't really understand what you want, but I'll have a wild stab in the dark and just say...

# Forget Perl for client/server applications. Think Visual C++/Sockets.

# Owen.


(This post was edited by Owen on Sep 18, 2003, 5:02 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives