What version of Perl are you running and more specifically, are you using Crypt-SSLeay? The output generated by setting the environment variable seems to be an option of Crypt-SSLeay. In my version of Perl I am not using this module but IO::Socket::SSL which has a debug option as well

So I ran the following tests acivating debug for IO::Socket::SSL and setting SSL_version explicitly. It shows that SSLv3 is not supported.

use strict ; use warnings ; use IO::Socket::SSL qw(debug4); use LWP::UserAgent ; # my $ua = new LWP::UserAgent( ssl_opts => { verify_hostname => 0, SSL +_version => 'TLSv1_1' } ); # Runs OK my $ua = new LWP::UserAgent( ssl_opts => { verify_hostname => 0, SSL_v +ersion => 'SSLv3' } ); # Fails my $response = $ua->get( "https://www.google.com/" ) ; if ( $response->is_success ) { # print $response->as_string; } else { print "Something went wrong\n"; } __END__ DEBUG: .../IO/Socket/SSL.pm:598: global error: SSL Version SSLv3 not supporte +d Something went wrong

Further reading here: Crypt-SSLeay:

DO YOU NEED Crypt::SSLeay? ^ Starting with version 6.02 of LWP, https support was unbundled into LWP::Protocol::https. This module specifies as one of its prerequisites IO::Socket::SSL which is automatically used by LWP::UserAgent unless this preference is overridden separately. IO::Socket::SSL is a more complete implementation, and, crucially, it allows hostname verification. Crypt::SSLeay does not support this. At this point, Crypt::SSLeay is maintained to support existing software that already depends on it. However, it is possible that your software does not really depend on Crypt::SSLeay, only on the ability of LWP::UserAgent class to communicate with sites over SSL/TLS.

edit: updated links to metaCPAN instead

In reply to Re: if SSLv3 is disabled, why does LWP::UserAgent request indicate successful SSLv3 handshake? by Veltro
in thread if SSLv3 is disabled, why does LWP::UserAgent request indicate successful SSLv3 handshake? by bennetthaselton

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.