Perl script LWP::UserAgent & proxies?

I'm new to perl & not familiar with it at all... I have a script that creates a browser session with

my $browser = LWP::UserAgent->new;

it is called like this $browser->get($page_url, ":content_file"=>"tmp");

the question I have is, is it possible to define a proxy for the $browser object?

if so, how do I do that?
Who is Participating?
marchentConnect With a Mentor Commented:
Change the value of proxy_url from below code, format is IP:Port
my $proxy_url = "";
$browser->proxy('http', $proxy_url);

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.