Subject: | catch//propagate LWP 501 error on https url if ssl libraries not installed |
Attempting to open an https:// url when ssl libraries are not installed
for LWP gives an error that the url is not "DAV enabled or not
accessible." This error is correct but would be more useful if it
directed users to correct their own end (ssl install) rather than wonder
about the server.
LWP returns an internal 501 response that could be propagated back to
the user. This would be especially helpful to 'dave' end-users.
current error:
"Couldn't open https://groups.pm.org:443/groups/losangeles: The URL
"https://groups.pm.org:443/groups/losangeles/" is not DAV enabled or not
accessible. "
internal 501 response: ($response->as_string):
501 Protocol scheme 'https' is not supported (Crypt::SSLeay or
IO::Socket::SSL not installed)
Content-Type: text/plain
Client-Date: Sat, 24 Jul 2010 15:20:47 GMT
Client-Warning: Internal response
LWP will support https URLs if either Crypt::SSLeay or IO::Socket::SSL
is installed. More information at
<http://search.cpan.org/dist/libwww-perl/README.SSL>.
----
snippit of Dumper $response:
'_rc' => 501,
'_msg' => 'Protocol scheme \'https\' is
not supported (Crypt::SSLeay or IO::Socket::SSL not installed)',