user1313 Posted December 6, 2007 Report Share Posted December 6, 2007 Hi to all!Especially to all the µTorrent.com team which consistently deletes all feature requests about CL control of U/L speed.To control µT you may use the string from your browser (WebUI MUST be installed!):http://host:port/gui/?action=setsetting&s=max_dl_rate&v=200&s=max_ul_rate&v=200&s=sched_enable&v=0i think it's pretty self-explanatory. Of course it requires authorization. So you may use little script (perl):#!/usr/bin/perluse HTTP::Request::Common qw(GET);use LWP::UserAgent;my $host = $ARGV[0];my $port = $ARGV[1];my $upload = $ARGV[2];my $download = $ARGV[3];my $username = $ARGV[4];my $password = $ARGV[5];my $scheduler = $ARGV[6];unless (($host)&&($port)&&($download)&&($upload)&&($username)&&($password)) { die "Usage:\nucontrol.pl HOST PORT U_LIMIT D_LIMIT USERNAME PASSWORD SCHEDULER(1/0)\n"; }$ua = LWP::UserAgent->new;$req = HTTP::Request->new(GET => "http://$host:$port/gui/?action=setsetting&s=max_dl_rate&v=$download&s=max_ul_rate&v=$upload&s=sched_enable&v=$scheduler");$req->authorization_basic($username, $password);my $response = $ua->request($req);if ($response->is_success) { print "Done\!"; } else { print "Error\!"; print $response->status_line; }And the you should run this script with perl interpreter and some command line options. For example, if i need to limit DL speed to 64KB/s and UL speed to 200 KB/s and turn on the scheduler on 192.168.0.1 machine with WebUI on port 666, username "Administrator" (Case sensitive!!!) and password "password" i will use the following commands:Linux:perl ucontrol.pl 192.168.0.1 666 200 64 Administrator password 1Windows:perl.exe ucontrol.pl 192.168.0.1 666 200 64 Administrator password 1Notes:* username and password are both case-sensitive** host can be IP, domain, name in workgroup Link to comment Share on other sites More sharing options...
Firon Posted December 6, 2007 Report Share Posted December 6, 2007 They get trashed because every new thread is a duplicate. Link to comment Share on other sites More sharing options...
user1313 Posted December 6, 2007 Author Report Share Posted December 6, 2007 Yes i know that. It's my nr. 1 request and i never posted an thread because search is working ))))But it's a pity i must use such perversion. Link to comment Share on other sites More sharing options...
jewelisheaven Posted December 6, 2007 Report Share Posted December 6, 2007 What is he on about? http://user:pass@IP:port/gui/ Settings -> Control -> Upload Limit. Link to comment Share on other sites More sharing options...
user1313 Posted December 6, 2007 Author Report Share Posted December 6, 2007 Who? He? Me? And maybe I'm a girl? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.