$ua = LWP::UserAgent->new;
$request = HTTP::Request->new('GET', 'http://foo.com');
$response = $ua->request($request);
$response->code gives you the HTTP status code which is as good as telling you the result.
You can also check if successful with $response->is_success.
Jing Wee
At 05:14 PM 6/3/2002 +0200, Arthur wrote:
Hi
I'm trying to get the result of an HTML request with LWP. Not the html code, but the result of itself.
Thanks
Arthur
