Jump to content

API issue with utorrent server 3.0 25053


dajomas

Recommended Posts

Posted

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 API

When 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.1
Connecting to localhost|127.0.0.1|:<port>... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to localhost|127.0.0.1|:<port>... connected.
HTTP request sent, awaiting response... 400 ERROR
2011-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.

Greetinx

Johan

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...