Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: LWP_SSL_Verify_mode option

by daxim (Chaplain)
on Oct 30, 2013 at 12:22 UTC ( #1060356=note: print w/ replies, xml ) Need Help??


in reply to LWP_SSL_Verify_mode option

Adapted from my answer at How to ignore 'Certificate Verify Failed' error in perl?:

use IO::Socket::SSL qw(); use LWP::UserAgent qw(); my $ua = LWP::UserAgent->new(ssl_opts => { SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE, verify_hostname => 0, # this key is likely going to be removed in +future LWP >6.04 });
Then set the ua attribute on the Frontier::Client instance.


Comment on Re: LWP_SSL_Verify_mode option
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-12-26 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (171 votes), past polls