vbrtrmn has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent("Faux Browser/1.0"); my $req = HTTP::Request->new(GET=>$url); $req->content_type('application/x-www-form-urlencoded'); $req->content('query=libwww-perl&mode=dist'); my $res = $ua->request($req); if ($res->is_success) { # do stuff } else { # error out }
--
paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP Byte Limit
by Aristotle (Chancellor) on Aug 18, 2004 at 18:29 UTC | |
|
•Re: LWP Byte Limit
by merlyn (Sage) on Aug 18, 2004 at 18:57 UTC | |
|
Re: LWP Byte Limit
by Fletch (Bishop) on Aug 18, 2004 at 18:30 UTC |