develooper Front page | perl.beginners | Postings from February 2002

Re: Seeking HTTP module

Thread Previous
Agustin Rivera
February 27, 2002 14:12
Re: Seeking HTTP module
Message ID:
Try this as a base to get the data

use strict;
use LWP::Simple;

my $add="";  ##
after ? are gets
my $content = get($add);
print $content;

Agustin Rivera

----- Original Message -----
From: "Chuck Tomasi" <>
To: <>
Sent: Wednesday, February 27, 2002 2:02 PM
Subject: Seeking HTTP module

> I suspect there is something out there to do what I need, but I'm not
> quite sure what to look for.  I was hoping this would be a more efficient
> way of asking...
> Setup: Apache 1.3.x, Perl 5.6.0, Sun Solaris 2.7.
> I need to write a CGI program that makes an HTTP connection (port 80) and
> does a GET from a remote server.
> My particular case is to call a Perl CGI on server A that does a GET
> (calls a CGI) on server B so that it looks like server A has the data.  In
> reality, the first CGI is DEFANGded in a server side include (SSI) so it
> can't make the call to server B's CGI directly.  I've got a buddy who has
> done this in PHP, and I know it can be done in Perl.
> HTML Doc --> call local CGI --> HTTP GET --> remote CGI runs
> output appears as inline text in original HTML document.
> Thanks.
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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