Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    LWP::Protocol::https::SocksChain 1.8

    Download button

    No screenshots available
    Downloads: 598  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Igor V. Okunev | More programs
    Perl Artistic License / FREE
    June 29th, 2010, 04:08 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    LWP::Protocol::https::SocksChain description

    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 => [
    '2x0.41.23.164:1080:::4:383 b/s Argentina',
    '24.2x2.88.160:1080:::4:1155 b/s Argentina',
    ],
    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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    speak HTTPs | LWP protocol | Perl module | HTTPS | SocksChain | LWP

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM