in reply to Re^4: Error 500 in LWP
in thread Error 500 in LWP
https://www.microsoft.com/uk-ua/
So, I see you have changed the target URL again. I wonder why. Anyway, here, on CentOS 6 is the script which works absolutely perfectly for me:
use strict; use warnings; use Test::More tests => 1; use LWP::UserAgent; use Data::Dumper; my $ua = LWP::UserAgent->new; my $res = $ua->get ('https://www.microsoft.com/uk-ua/'); is ($res->code, 200, 'Download succeeded'); diag (qq# LWP: $LWP::VERSION IO::Socket::SSL: $IO::Socket::SSL::VERSION#);
Which gives:
$ perl sslms.pl 1..1 ok 1 - Download succeeded # # LWP: 5.833 # IO::Socket::SSL: 1.31
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Error 500 in LWP
by YarNik (Sexton) on Aug 19, 2017 at 08:52 UTC | |
by hippo (Archbishop) on Aug 19, 2017 at 09:12 UTC | |
by YarNik (Sexton) on Aug 19, 2017 at 15:00 UTC | |
by hippo (Archbishop) on Aug 21, 2017 at 09:19 UTC |