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" <pengyu...@gmail.com>
To: <libwww@perl.org>
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

Reply via email to