The same code should work with LWP::UserAgent, because WWW::Mechanize inherits from it.
If you want to keep the file, you write the data in the callback instead of just printing the length of the data you received.
In reply to Re^5: Bandwidth limiting for file downloads: What can Perl do?
by Corion
in thread Bandwidth limiting for file downloads: What can Perl do?
by Polyglot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |