Help for this page

Select Code to Download


  1. or download this
    # Make sure LWP::UserAgent uses the right kind of socket
    use IO::Socket::SSL;
    ...
    
    ...
    $ua = LWP::UserAgent->new(ssl_opts => \%ssl_options),
    
  2. or download this
    {
      local $NET::HTTPS::SSL_SOCKET_CLASS = 'IO::Socket::SSL';
      $ua = LWP::UserAgent->new(ssl_opts => \%ssl_options),
    }