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

Re: Seeking HTTP module

Thread Previous
From:
Agustin Rivera
Date:
February 27, 2002 14:12
Subject:
Re: Seeking HTTP module
Message ID:
002a01c1bfdb$83a44b10$cbfea8c0@agustinr
Try this as a base to get the data

use strict;
use LWP::Simple;

my $add="http://www.worldofcgi.com/process.cgi?term1=hello&term2=world";  ##
after ? are gets
my $content = get($add);
print $content;

Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com



----- Original Message -----
From: "Chuck Tomasi" <ctomasi@plexus.com>
To: <beginners@perl.org>
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: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About