Search code examples
perlwgetlwp

set the download speed with LWP - Perl


I am developing an application which download files from internet; the files are mainly in ftp servers, I am using LWP::Simple and the getstore function to retrieve the files. But I would like to limit the speed of download, like in wget ...

have you seen something similar to the --limit-rate from wget implemented within LWP or LWP::Simple??

Thanks


Solution

  • If your main concerns are FTP servers, maybe look at Net::FTP::Throttle. You can set maximum rate in constructor.