dajomas Posted April 12, 2011 Report Share Posted April 12, 2011 Hello,I am migrating from running uTorrent 2.x under wine to the native utorrent server version 3.0 25053.Everything is up and running BUT I have a problem with the APIWhen I run the following command from the commandline I get the result as I expect (token in a none displayed div) (and of course, <user> <pass> <port> are replaced with valid values):wget -q -O- "http://<user>:<pass>@localhost:<port>/gui/token.html"However, when I try to get a list from the API with this command (<token> is replaced with the value retrieved from the previous step)wget -q -O- "http://<user>:<pass>@localhost:<port>/gui/?list=1&token=<token>"I get no results and when I ommit the -q it shows me:Resolving localhost... 127.0.0.1Connecting to localhost|127.0.0.1|:<port>... connected.HTTP request sent, awaiting response... 401 UnauthorizedConnecting to localhost|127.0.0.1|:<port>... connected.HTTP request sent, awaiting response... 400 ERROR2011-04-12 12:23:04 ERROR 400: ERROR.When I access the same links but now from a webbrowser (which authenticates with the same user name and password but which are not provided in the URL) I get the list as I would expect.This problem also occurs when I use python and the urllib2 library.Am I doing something wrong? All this was working correctly with uTorrent 2.x (under wine)Your help will be greatly appreciated.GreetinxJohan Link to comment Share on other sites More sharing options...
Ultima Posted April 13, 2011 Report Share Posted April 13, 2011 Cookies. µTorrent 3.0 uses HTTP cookies now. Link to comment Share on other sites More sharing options...
dajomas Posted April 13, 2011 Author Report Share Posted April 13, 2011 Thanx Ultima,I got it all working now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.