in reply to LWP::Simple on HTTPS sites

I recently had a similar issue that caused any module–like LWP::UserAgent–which was relying on outdated versions of lower level modules like IO::Socket::SSL and Net::SSLeay, to break when fetching https sites. Once I upgraded my Debian install, the problem was fixed.

So check your version of Perl and see if there is an upgrade available for these low level modules. As you are on Windows, I can't help much there.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re^2: LWP::Simple on HTTPS sites
by rbhyland (Acolyte) on Feb 25, 2017 at 09:32 UTC
    Thanks for the clue. After some more research along that line I fixed by changing my GET code to look like this:
    $ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0; my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0, SSL_verify_mode => IO::Soc +ket::SSL::SSL_VERIFY_NONE, },); my $req = HTTP::Request->new( GET => 'https://xkcd.com/'); my $response = $ua->request($req); my $content = $response->content; my $sitePrefix = 'https://xkcd.com/';
    Now it works again. Thanks everyone!
      So the result of your research is that you disable any kind of certificate validation? Since you access only comics this is probably not a big deal but for anything serious this would be a bad idea since you effectively disable the protection HTTPS offers.