Results 1 to 4 of 4

Thread: WEBAPI issues with uTorrent 2.0.0

  1. #1
    Join Date
    Apr 2010
    Posts
    69

    WEBAPI issues with uTorrent 2.0.0

    I wrote some utilities which make use of the WEBAPI ( Token authentication is being used) and within version 1.8.5, they performs like a charm but in version 2.0.0, I do get a token but calls to for instance the getprops or list functions occurs me the error 300 back. It is looking so wired .This means I have to revert back to version 1.8.5..

    Has something configured or is it a error . The weirdest thing is that the webui performs just well. The issues that I encounter happen with uTorrent 2.0.0 in combination with webui 0.362 and 0.370

  2. #2
    Join Date
    Jan 2006
    Posts
    3,792

    Re: WEBAPI issues with uTorrent 2.0.0

    Are you grabbing the token properly.If you are having any confusion regarding this. so you can come across that and resolve what are the confusions that you have currently . I am here with some new ideas, but here's what I have:

    index.html involves somewhere in it, $$TOKEN$$, for example:
    <div id='token' style='display:none;'>$$TOKEN$$</div>

    It's necessary that it should be placed somewhere accessible from Javascript, but disappeared from the user. uTorrent will replace $$TOKEN$$ when it transfer the file with an opaque token value: .

    <div id='token' style='display:none;'>
    Repplaced contents ......
    </div>

  3. #3
    Join Date
    Apr 2010
    Posts
    69

    Re: WEBAPI issues with uTorrent 2.0.0

    1- Primarily what I have to do is :
    http://<username>:<password>@<host>:<port>/gui/token.html

    2- After that is to grab the contents of the tag with the id "token" and save that as the token. So that would be any type of contents within the "<div id='token' style='display:none;'>" and "</div>"

    3- Then I grab the complete list with:
    http://<username>:<password>@{host}:{port}/gui/?list=1&token=<token>

    4- Then I found the properties for every specified torrent with:
    http://<username>:<password>@<host>:<port>/gui/?action=getprops&hash=<torrent hash>&token=<token>

    5- After all, I would configure certain features with:
    http://<username>:<password>@<host>:<port>/gui/?action=setprops&hash=<hash>&s=<setting>&v=<value>&token=<token>

    In addition, I should also configure the label or start/stop/forcestart a torrent . As I told above , this performed very well in 1.8.5 but in 2.0.0 any action (like list= or action=) will result in an error 300... Anything within the < and > would be replaced by it's main content...

  4. #4
    Join Date
    May 2008
    Posts
    2,945

    Re: WEBAPI issues with uTorrent 2.0.0

    You are going in fine way and Big Fish suggested very well to resolve your confusion but there is something that you need to consider about and try to implement this and would work like charm also ..Add the following components:

    http://<username>:<password>@<host>:<port>/gui/?token=<token>&action=getprops&hash=<torrent hash>

Similar Threads

  1. Utorrent 2.0.2 vs utorrent 1.8.5 version
    By Tanveer Joshi in forum Technology & Internet
    Replies: 6
    Last Post: 27-06-2010, 12:16 AM
  2. bug - utorrent for mac
    By Tajdar in forum Technology & Internet
    Replies: 5
    Last Post: 25-06-2010, 07:14 AM
  3. uTorrent Regulator
    By Jaabili in forum Technology & Internet
    Replies: 4
    Last Post: 25-06-2010, 07:01 AM
  4. What is better - uTorrent or Vuze?
    By Feng in forum Technology & Internet
    Replies: 5
    Last Post: 24-06-2010, 06:40 AM
  5. uTorrent 2.0.1 vs 1.8.5
    By Chen in forum Technology & Internet
    Replies: 4
    Last Post: 18-06-2010, 06:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,578,085.25247 seconds with 16 queries