AnyEvent::TLS::SNI - Adds Server Name Indication (SNI) support to AnyEvent::TLS client.
version 0.01
use AnyEvent::HTTP; use AnyEvent::TLS::SNI; my $cv = AnyEvent->condvar; $cv->begin; AnyEvent::HTTP::http_get( 'https://sni.velox.ch/', tls_ctx => { verify => 1, verify_peername => 'https', host_name => 'sni.velox.ch' }, sub { printf "Body length = %d\n", length( shift ); $cv->end; } ); $cv->recv;
Alexander Nalobin <alexander@nalobin.ru>
This software is copyright (c) 2015 by Alexander Nalobin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::TLS::SNI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::TLS::SNI
CPAN shell
perl -MCPAN -e shell install AnyEvent::TLS::SNI
For more information on module installation, please visit the detailed CPAN module installation guide.