Jump to content

?action=add-file


TEDSON

Recommended Posts

Posted

I having some difficulty understanding how to use this call.

Do I have to create a local webpage on my computer and somehow point the API to it?

Can I just send it a string?

Im not using any browser just some script, which seems to work fine for all the other calls I have tried.

I notice the http post instead of http get, but that means nothing to me, I dont know anything about http

I would very much appreciate any help with this, Ive gone through posts to 2006 with no luck.

Posted

Ok maybe my question is not understood.

If Im wanting to add a torrent file from my pc "c:\torrentfile.torrent" and Im going to try it with firefox, what do I need to put in the address bar for the torrent to get added?

Posted

There must be tons of people who use this, but the documentation dosent really tell me anything.

http://[iP]:[PORT]/gui/?action=add-file

This action is different from the other actions in that it uses HTTP POST instead of HTTP GET to submit data to µTorrent. The HTTP form must use an enctype of "multipart/form-data" and have an input field of type "file" with name "torrent_file" that stores the local path to the file to upload to µTorrent

http://[iP]:[PORT]/gui/?action=add-file[what goes here?]

Posted

http://en.wikipedia.org/wiki/HTTP_POST

There is no magic URL that would get you to be able to POST a local file to a host, because POSTed requests contain data in the message body, not just the URL as in HTTP GET.

At best, you can probably get some commandline utility to handle the POST for you. cURL comes to mind, or I guess µTorrent Adder if you specifically want to add-file.

Archived

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

×
×
  • Create New...