Re: Bandwidth limit on WWW::Mechanize?

2011-08-14 Thread Octavian Rasnita
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

Re: Bandwidth limit on WWW::Mechanize?

2011-08-14 Thread Andy Lester
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

Bandwidth limit on WWW::Mechanize?

2011-08-14 Thread Peng Yu
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