in reply to Re: LWP::Simple on HTTPS sites
in thread LWP::Simple on HTTPS sites
Now it works again. Thanks everyone!$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/';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: LWP::Simple on HTTPS sites
by noxxi (Pilgrim) on Feb 25, 2017 at 18:26 UTC |