Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Better solution with Mechanize?

by polettix (Vicar)
on Jun 13, 2006 at 00:26 UTC ( #554934=note: print w/replies, xml ) Need Help??


in reply to Better solution with Mechanize?

Why don't you use the get() method that WWW.Mechanize inherits (ok, overloads) from LWP::UserAgent? It's as easy as doing:
$m->get($your_url); $m->save_content($in_this_file) if $m->success();

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^2: Better solution with Mechanize?
by myuserid7 (Scribe) on Jun 13, 2006 at 03:05 UTC
    I would, but I need the referrer headers to correctly reflect the origin of the clicked link. AFAIK get() is a new, unattached request..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2023-12-07 12:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (32 votes). Check out past polls.

    Notices?