I haven't tried it, but you may try to use:
:content_cb => \&callback
:read_size_hint => $bytes
And in the callback sub you can use sleep() or select( undef, undef, undef, )
to try to delay the download.
Octavian
- Original Message -
From: "Peng Yu"
To:
S
On Aug 14, 2011, at 11:40 PM, Peng Yu wrote:
> I don't see that there is a way to set the maximum download bandwidth
> (in the unit of MB/s) in WWW::Mechanize. Does anybody know if there is
> a way to limit the speed of the download?
If there was, it would be part of LWP, not Mechanize, and as
Hi,
I don't see that there is a way to set the maximum download bandwidth
(in the unit of MB/s) in WWW::Mechanize. Does anybody know if there is
a way to limit the speed of the download?
--
Regards,
Peng