in reply to Re^4: Bandwidth limiting for file downloads: What can Perl do?
in thread Bandwidth limiting for file downloads: What can Perl do?

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.

  • Comment on Re^5: Bandwidth limiting for file downloads: What can Perl do?