in reply to Error checking LWP::UserAgent

From 'perldoc LWP':
# Pass request to the user agent and get a response back my $res = $ua->request($req); # Check the outcome of the response if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n"; }

-Blake

Replies are listed 'Best First'.
Re: Re: Error checking LWP::UserAgent
by jlongino (Parson) on Oct 29, 2001 at 12:15 UTC
    Thanks blakem. I checked out the docs on LWP::UserAgent and several nodes before posting but didn't think to look at just LWP.

    --Jim