in reply to Re: Where is LWP::Simple::get error information stored?
in thread Where is LWP::Simple::get error information stored?
LWP::UserAgent doesn't?
use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->env_proxy; my $response = $ua->get('http://example.org/'); print "HTTP response code was: ", $response->status_line, "\n"; #print "Content was:\n", $response->content, "\n";
HTTP response code was: 200 OK HTTP response code was: 404 Not Found HTTP response code was: 500 Can't connect to 127.0.0.1:80 (Invalid arg +ument)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Where is LWP::Simple::get error information stored?
by Anonymous Monk on Sep 28, 2012 at 13:54 UTC | |
by Anonymous Monk on Sep 28, 2012 at 14:00 UTC | |
by Anonymous Monk on Sep 28, 2012 at 14:04 UTC | |
by Anonymous Monk on Sep 28, 2012 at 15:04 UTC | |
by Anonymous Monk on Sep 28, 2012 at 16:37 UTC |