develooper Front page | perl.libwww | Postings from September 2008

Re: restrict download bandwidth

Thread Previous
From:
libwww
Date:
September 12, 2008 10:13
Subject:
Re: restrict download bandwidth
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
libwww@perlmeister.com

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About