# Set agent and proxy $ua = LWP::UserAgent->new; $ua->proxy('socks', "http://localhost:8118"); # remove cookies unlink "/tmp/cookies.txt"; $ua->cookie_jar({ file => "/tmp/cookies.txt" }); $response = $ua->get($url); if ($response->is_success){ print $response->content; }else { print $response->status_line; }
Neil Watson
watson-wilson.ca
In reply to User agent through Privoxy? by neilwatson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |