Straight from lwpcook:
Lazy people use the HTTP::Request::Common module to set up a suitable POST request message (it handles all the escaping issues) and has a suitable default for the content_type:
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;
| [reply] [d/l] |
How then do I use POST using LWP::UserAgent?
Did you bother to read the documentation of
LWP::UserAgent? If so, could you indicate
which part about using POST was unclear to you?
Abigail
| [reply] |