http://www.perlmonks.org?node_id=554934


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..