gemoroy has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to send LWP request with this module, but i've got such an response:
500 Undefined subroutine &LWP::Debug::trace called
Content-Type: text/plain
Client-Date: Mon, 29 Jun 2009 11:56:12 GMT
Client-Warning: Internal response
..... foreach(@socks){ $serv = shift(@socks); @LWP::Protocol::http::SocksChain::EXTRA_SOCK_OPTS = ( Chain_Len => 1, Debug => 1, Random => 0 +, Auto_Save = +> 1, Restore_Typ +e => 1, Chain_File_ +Data => ["$serv:::5::115 b/s Sock"]); my $req = HTTP::Request->new( GET => 'http://google.ru'); my $res = $ua->request($req) || die $!; $res = $res->as_string; print "$res \n"; #print "$socks[1]\n"; }
Strange thing is when i'm trying to set breakpoint on LWP::Debug, there is no such func..
I just cant understand anything..have anybody made it working?Thanks a lot in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Protocol::http::SocksChain question
by Anonymous Monk on Jun 29, 2009 at 16:10 UTC | |
by gemoroy (Beadle) on Jun 30, 2009 at 12:24 UTC | |
by Anonymous Monk on Jun 30, 2009 at 12:37 UTC |