http://www.perlmonks.org?node_id=1090059

DaisyLou has asked for the wisdom of the Perl Monks concerning the following question:

- I had a problem with SMTP.pm. - I found an instruction on the web to fix it: in IO::SSL, I changed
#m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv112?))$}i
m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv112?))}i
This appears to have had a side-effect, where now LWP is reporting "Internal Error 500" whenever I try to make an https request. Anyone seen this before or any advice on how to fix the LWP issue?
  • Comment on SMTP.pm & LWP Conflict - Internal response 500 from LWP

Replies are listed 'Best First'.
Re: SMTP.pm & LWP Conflict - Internal response 500 from LWP
by Anonymous Monk on Jun 16, 2014 at 19:26 UTC
      Thanks. It was the installation of IO::SSL that caused the breakage in SMTP ( Default SSL_verify_mode deprecated ). I Googled around and found that if you replace that regex, it will fix SMTP, but it appears to have broken LWP. I tried to get the debug info like you suggested, but when I added the envrionment variable (from shell and in a begin block in my script), nothing was output. /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm our $VERSION = '1.94'; /usr/share/perl5/LWP.pm $VERSION = "6.05";

        Hmm, lets see, the last version of LWP is 6.06, and IO-Socket-SSL is 1.993 ....

        Try the latest versions not old ones

Re: SMTP.pm & LWP Conflict - Internal response 500 from LWP
by perlfan (Vicar) on Jun 16, 2014 at 20:52 UTC
    Can you post the problem you were having with SMTP.pm and a link to the "solution", maybe?
      Thanks. It was the installation of IO::SSL that caused the breakage in SMTP ( Default SSL_verify_mode deprecated ). I Googled around and found that if you replace that regex, it will fix SMTP, but it appears to have broken LWP. I tried to get the debug info like you suggested, but when I added the envrionment variable (from shell and in a begin block in my script), nothing was output. /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm our $VERSION = '1.94'; /usr/share/perl5/LWP.pm $VERSION = "6.05";