in reply to LWP Request Through SOCKS Proxy

I know nothing about SOCKS, but, since no one seems to want to answer this, I'll give it a shot.

Can you get Net::SOCKS to run. You should be able to modify the code below to do a get from the SOCKS proxy. If you can get this to work, I don't think that it will be hard to make LWP work with it.

use Net::SOCKS; my $sock = new Net::SOCKS(socks_addr => '192.168.1.3', socks_port => 1080, user_id => 'the_user', user_password => 'the_password', force_nonanonymous => 1, protocol_version => 5); # connect to http port and request /index.html my $f= $sock->connect(peer_addr => '192.168.1.3', peer_port => 80); print $f "GET /index.html\n"; # example writing to socket while (<$f>) { print } # example reading from socket $sock->close();
-- gam3
A picture is worth a thousand words, but takes 200K.

Replies are listed 'Best First'.
Re^2: LWP Request Through SOCKS Proxy
by Anonymous Monk on Jul 19, 2009 at 02:54 UTC
    See this example: http://mlawire.blogspot.com/2009/07/using-lwp-with-tor.html