in reply to Re: Perl's Net:Kubernetes question
in thread Perl's Net:Kubernetes question

Hi Rob, thanks for the pointers. I checked and my Perl install already has LWP::UserAgent, LWP::Protocol::https, and IO::Socket::SSL installed. The only missing one is Net::SSL. Are both IO::Socket::SSL AND Net::SSL required, or having one installed is sufficient?

Replies are listed 'Best First'.
Re^3: Perl's Net:Kubernetes question
by hippo (Archbishop) on Nov 13, 2019 at 15:50 UTC

    If you just want to confirm that your LWP::UserAgent can make an https connection try this from your shell:

    HEAD https://www.google.com/

    If the first line returned is 200 OK then you are good to go.

      Careful with this on OS X because of the default filesystem case insensitivity the LWP's HEAD is indistinguishable from the normal *NIX /usr/bin/head; you can use lwp-request -m HEAD https://www.google.com/ there instead to get the right thing.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.

        on OS X because of the default filesystem case insensitivity

        In that regard I agree entirely with Linus's take.

        Thanks Fletch. I simply copy and paste that synopsis code block from LWP::UserAgent doc. page to test connection to google and it runs fine.
      Hi hippo, yep, the test connection to google is good. So, looks like the issue is not because of LWP dependencies but something with Net::Kubernetes usage. Its doc. doesn't specifically say I can specify the string with full path and file name to the SSL keys, so I'm not sure if my code's call looks correct??