in reply to Re: Can't install LWP::Protocol::https::Socket
in thread Can't install LWP::Protocol::https::Socket

I'm connected to the internet and I was able to install other packages without any problems.

  • Comment on Re^2: Can't install LWP::Protocol::https::Socket

Replies are listed 'Best First'.
Re^3: Can't install LWP::Protocol::https::Socket
by marto (Cardinal) on Oct 29, 2013 at 13:25 UTC

      Thanks Marto/anonymous monk,

      I was able to install the module but it seems when I use the module in my Perl script I'm still having errors accessing https sites. I can access https sites using wget and browser.

      Can't connect to www.google.com:443 (Network is unreachable) LWP::Protocol::https::Socket: connect: Network is unreachable at /usr/ +local/share/perl5/LWP/Protocol/http.pm line 51
        Hi,

        I just wanted to confirm (due to paranoia) that this problem is still outstanding as identified in https://rt.cpan.org/Public/Bug/Display.html?id=67001

        I modified that test apache.t in LWP::Protocol::https as follows:

        diff t/apache.t t/apache-jim.t 13c13 < my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www +.apache.org")); --- > my $res = $ua->simple_request(HTTP::Request->new(GET => "https://www +.bankofamerica.com")); 18c18 < like($res->content, qr/Apache Software Foundation/); --- > like($res->content, qr/Bank of America/);

        And I got success:

        $ prove --blib t/apache-jim.t t/apache-jim.t .. ok All tests successful. Files=1, Tests=5, 3 wallclock secs ( 0.04 usr 0.01 sys + 0.25 cusr + 0.04 csys = 0.34 CPU) Result: PASS

        I see that the bug is still outstanding, but I am nervous that the Apache Foundation cert query is still not fixed and/or the test has not been updated to something more reasonable.

        So - again feel pretty good. Just wanted another opinion from the Monks.

        JIM