require LWP::UserAgent; use LWP::Simple; my $ua = LWP::UserAgent->new; $ua->timeout(5); $ua->cookie_jar({ file => "$ENV{'HOME'}/lwp_cookies.dat" }); $ua->proxy('http', "http://google.com"); $content = get("http://flash.udaff.com/"); die "Couldn't get it!" unless defined $content; print "Done\n";
Edited by Chady -- added code tags.
In reply to Re: Re: LWP::Simple request through a proxy
by freak
in thread LWP::Simple request through a proxy
by freak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |