in reply to beyond LWP return code

It's not entirely clear what you're asking for, but looking at the source of LWP::UserAgent, it seems like you can check the response headers to see if they include a "Client-Warning: Internal response" line -- if so, then it's an LWP-generated "fake" error. (This is defined in sub _new_response, near the end of LWP::UserAgent.)

Replies are listed 'Best First'.
Re: Re: beyond LWP return code
by pg (Canon) on Oct 19, 2003 at 23:13 UTC

    If you look at all the possible values LWP::UserAgent assigns to Client-Warning field, you will realize that it is not really related to what the original post asked.

    • Once it says "redirect loop detected";
    • rest of times are all related to authentication.