Re: Making a HTTP POST





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.
.