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

Re: Fetching web pages using

by Cine (Friar)
on Jul 31, 2002 at 22:08 UTC ( [id://186621]=note: print w/replies, xml ) Need Help??


in reply to Fetching web pages using

something like:
use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->agent('whatever IE6 say'); $ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt",autosave = +> 1)); my $req = HTTP::Request->new(GET => 'http://...'); my $res = $ua->request($req); if ($res->is_success) { print $res->content; } else { print "Bad luck this time\n"; }


T I M T O W T D I

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-03-29 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found