in reply to LWP::Simple trouble. [SOLVED]

Any thoughts?

stick with WWW::Mechanize, LWP::Simple is too simple

Also, study the mechanize faq, use firefox+livehttpheaders/wireshark, figure out what headers you need to send , what cookie setting web bugs you need to load, what urls you need to access...

there is no windows, just urls, no secret except trace the http

Replies are listed 'Best First'.
Re^2: LWP::Simple trouble.
by scarfguy (Novice) on May 18, 2016 at 12:15 UTC

    Thank you guys! It works with:

    $mech -> get($downloadURI); $mech -> save_content($fileName);

    I thought LWP::Simple was the standard way to download stuff with perl. The problem really was the loss of the cookies.