sectokia has asked for the wisdom of the Perl Monks concerning the following question:
Hi wise monks, I have found that simple LWP get on HTTPS doesn't always work. Below is example on a server which it never seems to work on:
use warnings; use strict; use LWP::UserAgent; my $ua = LWP::UserAgent->new( ssl_opts => { verify_hostname => 0 } ); my $res = $ua->get('https://www.target.com.au/'); print $res->content;
The error I get is:
I had a look at that file and its over my head. Any ideas? Thanks!Status read failed: Connection reset by peer at /usr/share/perl5/Net/H +TTP/Methods.pm line 282.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Useragent doesn't work on certain HTTPS websites?
by bliako (Abbot) on Feb 14, 2019 at 12:17 UTC | |
|
Re: LWP::Useragent doesn't work on certain HTTPS websites?
by noxxi (Pilgrim) on Feb 15, 2019 at 06:37 UTC | |
by sectokia (Friar) on Feb 15, 2019 at 11:51 UTC |