Created
February 3, 2012 19:36
-
-
Save cwimmer/1731948 to your computer and use it in GitHub Desktop.
Make LWP::UserAgent behave with SOCKS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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