LWP::Protocol::https::SocksChain

LWP::Protocol::https::SocksChain - Speak HTTPs through Net::SC.
Download

LWP::Protocol::https::SocksChain Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Igor V. Okunev
  • Publisher web site:
  • http://search.cpan.org/~gosha/LWP-Protocol-http-SocksChain-1.4/SocksChain.pm

LWP::Protocol::https::SocksChain Tags


LWP::Protocol::https::SocksChain Description

LWP::Protocol::https::SocksChain - Speak HTTPs through Net::SC. LWP::Protocol::https::SocksChain is a Perl module that allows you to speak HTTPs through Net::SC.SYNOPSIS use LWP::UserAgent; use LWP::Protocol::https::SocksChain; LWP::Protocol::implementor( https => 'LWP::Protocol::https::SocksChain' ); @LWP::Protocol::https::SocksChain::EXTRA_SOCK_OPTS = ( Chain_Len => 1, Debug => 0, Random_Chain => 1, Auto_Save => 1, Restore_Type => 1 ); my $ua = LWP::UserAgent->new(); my $req = HTTP::Request->new( GET => 'https://home.sinn.ru/~gosha/perl-scripts/'); my $res = $ua->request($req) || die $!; if ($res->is_success) { ... } else { ... } or use LWP::UserAgent; use LWP::Protocol::https::SocksChain; LWP::Protocol::implementor( https => 'LWP::Protocol::https::SocksChain' ); @LWP::Protocol::https::SocksChain::EXTRA_SOCK_OPTS = ( Chain_Len => 1, Debug => 0, Random_Chain => 1, Chain_File_Data => , Auto_Save => 0, Restore_Type => 0 ); my $ua = LWP::UserAgent->new(); my $req = HTTP::Request->new( GET => 'https://home.sinn.ru/~gosha/perl-scripts/'); my $res = $ua->request($req) || die $!; if ($res->is_success) { ... } else { ... }LWP::Protocol::https::SocksChain enables you to speak HTTPs through SocksChain ( Net::SC ). To use it you need to overwrite the implementor class of the LWP 'https' scheme.The interface of LWP::Protocol::https::SocksChain is similar to LWP::Protocol::https. To enable the old HTTP/1.0 protocol driver instead of the new HTTP/1.1 driver use LWP::Protocol::https::SocksChain10. Requirements: · Perl


LWP::Protocol::https::SocksChain Related Software