Skip to content

Instantly share code, notes, and snippets.

@cwimmer
Created February 3, 2012 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cwimmer/1731948 to your computer and use it in GitHub Desktop.
Save cwimmer/1731948 to your computer and use it in GitHub Desktop.
Make LWP::UserAgent behave with SOCKS
cpanm LWP::UserAgent
cpanm LWP::Protocol::socks
use LWP::UserAgent;
$ua = new LWP::UserAgent();
$ua->proxy([qw(http https)] => 'socks://my.socks.proxy:1080');
. . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment