in reply to Re^2: Problem with SSL connection to PayPal
in thread Problem with SSL connection to PayPal
The only option is the one you've set.
$ cat 1166599.pl #!/usr/bin/perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new(); $ua->ssl_opts(verify_hostname => 1); my $host = 'https://tlstest.paypal.com'; my $req = HTTP::Request->new(GET => "$host"); my $res = $ua->get($host); if (not $res->is_success) { print $res->as_string . "\n"; } else { print "Success\n"; print $res->decoded_content . "\n"; foreach ($ua->ssl_opts) { print "$_ => " . $ua->ssl_opts($_) . "\n"; + } } palma pete 2309 $ ./1166599.pl Success PayPal_Connection_OK verify_hostname => 1 $ perl -v This is perl 5, version 20, subversion 3 (v5.20.3) built for x86_64-li +nux-thread-multi (with 16 registered patches, see perl -V for more detail) Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem with SSL connection to PayPal
by Anonymous Monk on Jun 27, 2016 at 01:01 UTC | |
by hippo (Archbishop) on Jun 27, 2016 at 08:10 UTC | |
by noxxi (Pilgrim) on Jun 27, 2016 at 20:59 UTC | |
by Anonymous Monk on Jul 02, 2016 at 21:19 UTC |