develooper Front page | perl.libwww | Postings from October 2001

Load another site while at some other site

Thread Next
Ritesh Gupta
October 10, 2001 22:19
Load another site while at some other site
Message ID:
Hi All,

I am trying to visit one page that should in turn pull contents from
another page and display it, and be transparent to the user.

So, e.g. when I goto http://internal.domain/cgi-bin/guessthis.cgi
It should pull the contents of
http://internal.domain/somedir/intrest.html and display it.

I am new to using libwww.

Here is the code excerpt that I have till now from all the cues I
have. Please help me on how to display go forward on this:

use HTTP::Request ;
use LWP::UserAgent;

$ua = LWP::UserAgent->new;
$request = HTTP::Request->new(GET =>
$response = $ua->request($request);

Any help with this will be highly appreciated

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About