Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

SMTP.pm & LWP Conflict - Internal response 500 from LWP

by DaisyLou (Acolyte)
on Jun 16, 2014 at 19:12 UTC ( #1090059=perlquestion: print w/ replies, xml ) Need Help??
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
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 (Curate) 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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1090059]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-21 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls