Lazy people use the HTTP::Request::Common module to set up a suita +ble 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;
-- Randal L. Schwartz, Perl hacker
In reply to •Re: LWP post
by merlyn
in thread LWP post
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |