http://qs321.pair.com?node_id=1083952


in reply to Re^2: LWP and HTTPS
in thread LWP and HTTPS

Yet another broken SSL server which cannot do TLS1.0 or better. Browsers work around this kind of error by retrying with a downgraded SSL version.
Recent versions of LWP (base of WWW::Mechanize) use IO::Socket::SSL/Net::SSLeay by default and you can simply enforce a specific SSL version like this:
$mech->ssl_opts( SSL_version => 'SSLv3');
I've tested it and it works with this broken server.

Replies are listed 'Best First'.
Re^4: LWP and HTTPS
by Gangabass (Vicar) on Apr 27, 2014 at 01:15 UTC
    Brilliant!!! Thank you! But I still don't understand why $ENV{ HTTPS_VERSION }= 3 is not work but  SSL_version => 'SSLv3' works...
      HTTPS_VERSION is a feature of Net::SSL/Crypt::SSLeay only, but with newer LWP Net::HTTPS/IO::Socket::SSL/Net::SSLeay is used instead.