Re: restrict download bandwidth

[email protected]
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Fri, 12 Sep 2008, Jan Buchholz wrote:

> does anybody know, i could restrict the download bandwidth with
> LWP::UserAgent.

Use a slowing proxy server? Download

   http://perlmeister.com/snapshots/200105/scripts/slowie.pl

and start

   $ slowie.pl
   Server listening at port 8018

then configure LWP::UserAgent to use it

     $ua->proxy(['http'], 'http://localhost:8018/');

Here's the article if you can read German:
   http://www.linux-magazin.de/heft_abo/ausgaben/2001/05/urlaub_in_der_steinzeit

-- Mike

Mike Schilli
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.