Marshall has asked for the wisdom of the Perl Monks concerning the following question:
The browser on his system can display that CPAN url and any other https site without problems. Mechanize works fine in other Perl programs on regular http sites.use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get('https://www.cpan.org'); my $html_string = $mech->content(); print $html_string; ### Can't connect to www.cpan.org:443 at test2.pl line 7.
He is using Perl 5.24 from ActiveState (I am also). We have verified that these modules are installed:
Crypt::SSLeay
Net::SSLeay
IO::Socket::SSL
Net::SSL
LWP::Protocol::https (update: forgot to mention in the original post)
I can't think of anything else that might be needed. Of course, this works fine on my machine. Any ideas?
Update: OS is Windows 10 and LWP::Protocol::https is installed.
|
|---|