develooper Front page | perl.libwww | Postings from March 2001

LWP::UserAgent -- Bug in $response->message

Thread Next
From:
Boris 'pi' Piwinger
Date:
March 13, 2001 13:52
Subject:
LWP::UserAgent -- Bug in $response->message
Message ID:
sp1tatojkqro97uok8s2tfsb432ng7fma8@4ax.com
Hi!

After some discussion in de.comp.lang.perl.misc
(<3AA7785F.62A4C7B4@logic.univie.ac.at> ff) I assume there is a bug in
LWP::UserAgent. I have a while loop reading URLs from a file. Those
are fetched, if unsuccessful the response code and message are
printed. The message becomes, e.g.:

Can't connect to www.polybytes.com:80 (No route to host), <FILE> chunk
1.

Obviously everything from the comma on is not correct at this place.
Someone suggested that in LWP::Protocol::http::_new_socket the message
does not end in \n.

pi

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About