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

LWP over SSL Hammers Apache

by grantm (Parson)
on Dec 17, 2004 at 01:06 UTC ( [id://415524] : perlmeditation . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $client = new IO::Socket::SSL(PeerAddr => "servername", PeerPort 
    +=> "https", SSL_session_cache_size => 100);
      if (defined $client) {
    ...
      } else {
          warn "SSL socket problem: ", IO::Socket::SSL::errstr();
      }
    
  2. or download this
    my $context = new IO::Socket::SSL::SSL_Context(
      SSL_version => 'tlsv1', 
      SSL_verify_mode => Net::SSLeay::VERIFY_NONE(),
      SSL_session_cache_size => 100
    );
    
  3. or download this
    my $client = new IO::Socket::SSL(PeerAddr => "servername", PeerPort =>
    + "https", SSL_reuse_ctx => $context);
    
  4. or download this
    use IO::Socket::SSL;
    
    ...
      SSL_session_cache_size => 100
    );
    IO::Socket::SSL::set_default_context($context);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://415524]
Approved by kvale
Front-paged by BrowserUk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-01 19:56 GMT
Voting Booth?
My favourite way to spend a leap day ...











Results (29 votes). Check out past polls.