TEDSON Posted June 16, 2010 Report Posted June 16, 2010 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 httpI would very much appreciate any help with this, Ive gone through posts to 2006 with no luck.
TEDSON Posted June 18, 2010 Author Report Posted June 18, 2010 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?
TEDSON Posted June 19, 2010 Author Report Posted June 19, 2010 There must be tons of people who use this, but the documentation dosent really tell me anything.http://[iP]:[PORT]/gui/?action=add-fileThis 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 µTorrenthttp://[iP]:[PORT]/gui/?action=add-file[what goes here?]
sasha_gu Posted June 20, 2010 Report Posted June 20, 2010 you must send you torrentfile in the body of post request, nothing else needs in urlread info about uploading files to the servers
Ultima Posted June 20, 2010 Report Posted June 20, 2010 http://en.wikipedia.org/wiki/HTTP_POSTThere 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.
TEDSON Posted June 20, 2010 Author Report Posted June 20, 2010 Thanks for the replys, they're appreciated.Im a little closer to getting my head around this http post malarky.Thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.