in reply to Re: IO::Socket::SSL incompatibility with WWW::Mechanize
in thread IO::Socket::SSL incompatibility with WWW::Mechanize

Setting the $Net::HTTPS::SSL_SOCKET_CLASS to 'Net::SSL' helped. Both POP3Client and Mechanize are working as expected now.

Included the below code in the beginning of the script.

use Net::SSL (); $Net::HTTPS::SSL_SOCKET_CLASS = "Net::SSL";

Thank you for the help!

Madhu

Replies are listed 'Best First'.
Re^3: IO::Socket::SSL incompatibility with WWW::Mechanize
by runrig (Abbot) on Jul 12, 2013 at 00:28 UTC
    Do you have the latest Net-HTTP installed? I'm guessing no, because then I think you would have to set environment variable PERL_LWP_SSL_VERIFY_HOSTNAME to 0.

      No, I don't have Net-HTTP installed. That's good to know.

        Net::HTTP is installed, otherwise none of this would work. I asked if you had the latest version installed.