Keep It Simple, Stupid | |
PerlMonks |
Re^5: Help with LWP & SSL 500 Internal response errorby afoken (Chancellor) |
on May 12, 2015 at 22:15 UTC ( [id://1126472]=note: print w/replies, xml ) | Need Help?? |
That 500 sure seems to suggest that 500 Internal Server Error was produced by somebody at some point. Sure. LWP generates it. This is documented in LWP: You may also encounter other "Client-XXX" headers. They are all generated by the library internally and are not received from the servers.and If the server is not available then the library will generate an internal error response. The actual code producing such an error is in LWP::UserAgent::_new_response():
This function is called from only three places, all in LWP::UserAgent:
The original posting explicitly uses LWP::Protocol::https. Its code (and the used Net::HTTPS) adds a lot of SSL handling, but leaves the actual HTTP handling to LWP::Protocol::http (by inheriting from it). Errors are reporting only via die(), without any attempt to generate a HTTP::Response object. LWP::Protocol::http contains "read failed" in only two places, both times as die "read failed: $!", one near the code that reads HTTP headers, one near the code that reads the HTTP content. So noxxi++ seems to be right in Re: Help with LWP & SSL 500 Internal response error, there is a problem inside the SSL connection. The connection is created, but after that, the server seems to stay silent instead of responding. This may be a client-side or a server-side problem. Trying a different HTTPS client as proposed by noxxi is a reasonable way to test for server-side problems. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|