Re: Making a HTTP POST
- From: pangj@xxxxxxxxxxxxx (Jeff Pang)
- Date: Thu, 29 Mar 2007 09:00:02 +0800 (GMT+08:00)
What's the best way to go about making an HTTP POST?
I want to retrieve a dynamic page that is only accessable via a POST.
Is there a module (simple one?) that deals with this?
From 'perldoc lwpcook',
use HTTP::Request::Common qw(POST);
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = POST 'http://www.perl.com/cgi-bin/BugGlimpse',
[ search => 'www', errors => 0 ];
print $ua->request($req)->as_string;
This is maybe the simplest way I knew.
.
- Follow-Ups:
- Re: Making a HTTP POST
- From: Peter Scott
- Re: Making a HTTP POST
- From: Yitzle
- Re: Making a HTTP POST
- Prev by Date: RE: Exiting loops
- Next by Date: Re: Reading in a file multiple lines at a time
- Previous by thread: Re: Making a HTTP POST
- Next by thread: Re: Making a HTTP POST
- Index(es):