Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: LWP::Simple request through a proxy

by freak
on May 04, 2004 at 11:16 UTC ( #350290=note: print w/replies, xml ) Need Help??


in reply to Re: LWP::Simple request through a proxy
in thread LWP::Simple request through a proxy

is this better ? :
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.

Replies are listed 'Best First'.
Re: Re: Re: LWP::Simple request through a proxy
by dave_the_m (Monsignor) on May 04, 2004 at 11:28 UTC
    Learn to format your text using <code> blocks or I'll stop responding to your posts.

    google.com is not a proxy server.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://350290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2021-01-20 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?