In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Dan Muey) writes:
>With LWP or LWP::UserAgent I can check if the request=20
>was ok and then print the content if it was like so:
>
>if ($res->is_success) {
> print $res->content;
>}
>
>But I havn't found a way to see what the error is if it fails. So I have =
>to just : else { print "IT failed, do it right nect time loser"; }
>
>What I'd like to be able to do is sometyhign like:
>
>else { print $res->errstr; }
>
>Does such a beast exist in LWP and I just missed it or ???
Yes, you just missed it. Look in the documentation for HTTP::Response
for these methods:
message
code
status_line
--
Peter Scott
http://www.perldebugged.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]