Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Downloading large file fails using Mechanize get function

by Limbic~Region (Chancellor)
on Nov 05, 2013 at 15:29 UTC ( [id://1061318]=note: print w/replies, xml ) Need Help??


in reply to Downloading large file fails using Mechanize get function

Dillman,
It could be a number of things but the first thing I would do is increase the timeout. Remember that WWW::Mechanize is a subclass of LWP::Useragent. I believe the default is 180.
$agent->timeout(300);
There is also a max_size but the default is undefined and I don't believe WWW::Mechanize doesn't change it.

Cheers - L~R

Replies are listed 'Best First'.
Re^2: Downloading large file fails using Mechanize get function
by Dillman (Novice) on Nov 05, 2013 at 22:53 UTC

    thanks for the response, I will give that a try and let you know the results.

Re^2: Downloading large file fails using Mechanize get function
by Anonymous Monk on Apr 04, 2014 at 15:40 UTC

    Thanks Limbic, after increasing the timeout my script has been working better

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found