btoovey has asked for the wisdom of the Perl Monks concerning the following question:
So basically I a passing an array with a value for proxy type - if its "5" it is a socks five server, if its "0" its an HTTP server. Works fine for SOCKS, I get forbidden when trying against 30 anonymous HTTP servers.$proxy_list[0] = # "vpn" . $tid . ".findnot.com:1088:user:pass:5 proxy"; $proxy[2] . ":" . $proxy[3] . ":" . $proxy[4] . ":" . $proxy[5] . ":" . $proxy_type . ":HTTP proxy"; LWP::Protocol::implementor( http => 'LWP::Protocol::http::Sock +sChain' ); @LWP::Protocol::http::SocksChain::EXTRA_SOCK_OPTS = ( Chain_Len => 1, Debug => 8, Random_Chain => 0, Auto_Save => 1, Restore_Type => 1, Log_file => "/root/connector/sockschainlog", Chain_File_Data => \@proxy_list, HTTP_CLIENT => "Mozilla/4.0 (compatible; MSIE 7.0; Windows + NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)" ); LWP::Protocol::implementor( https => 'LWP::Protocol::https::SocksChain' ); @LWP::Protocol::https::SocksChain::EXTRA_SOCK_OPTS = ( Chain_Len => 1, Debug => 1, Random_Chain => 0, Auto_Save => 1, Restore_Type => 1, Log_file => "/root/connector/sockschainlog1", Chain_File_Data => \@proxy_list );
|
|---|