Re: Bandwidth limit on WWW::Mechanize?
"Octavian Rasnita" <[email protected]> Mon, 15 Aug 2011 08:37:57 +0300
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <6B83EE778F74408A8E31F6CAA7AC60D9@teddy> |
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" <[email protected]>
To: <[email protected]>
Sent: Monday, August 15, 2011 7:40 AM
Subject: Bandwidth limit on WWW::Mechanize?
> 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