Jump to content

token new format


unforgiving

Recommended Posts

Hi, I'm recoding a mirc addon to get WEBUI info, in the old code I used to retrieve the token from this url was: /gui/token.html , but in the new versions of utorrent 3 and above doesn't work anymore. I figure out that the url used now is: /gui/token.html?t=SOMENUMBER . I just need to know, what is this number that come after "t=" ?

thanks in advance.

Link to comment
Share on other sites

  • 3 weeks later...

Context: To the backend, the GET parameter is entirely garbage. For all the backend cares, it could have been t=Math.random() and it would've worked just the same. The only point behind that parameter's use in WebUI was to prevent browsers from pointlessly caching token.html.

Basically, you're running down the wrong rabbit hole.

Link to comment
Share on other sites

@Ultima: thanks for the context, I was almost going to say it seemed to be just a random number, but had nothing to base that on. It's probably easier to just always pass the t= parameter to make sure the APIs we use don't go caching on us unexpectedly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...