framework Posted February 10, 2013 Report Share Posted February 10, 2013 Hi guysI'm struggling to figure out what am I doing wrong. I'm sending a POST request to uTorrent to upload a file but still getting error ( torrent file content not supplied in form parameter).The request looks like this:POST http://192.168.2.90:9999/gui/?token=q1CL8zXE-oJMhcQNTUhInAnyqVDOFvIxhHKgPagtdyPM51MazN_gbLm6F1EAAAAA&action=add-file HTTP/1.1Content-Type: multipart/form-data; boundary=----------------------------Authorization: Basic emFqZGE6YW5hbmFzHost: 192.168.2.90:9999Cookie: GUID=RKJLOYHlqaxG3VPDOP0wContent-Length: 2293----------------------------Content-Disposition: form-data; name="torrent_file"; filename="How.To.Draw.Anime.For.Beginners.torrent"Content-Type: application/x-bittorent<file content goes here>----------------------------If anyone spotted where's the catch it would be much appreciated.Thanks Link to comment Share on other sites More sharing options...
lithopsian Posted May 16, 2013 Report Share Posted May 16, 2013 Boundary in the file? Link to comment Share on other sites More sharing options...
Ultima Posted May 29, 2013 Report Share Posted May 29, 2013 http://www.ietf.org/rfc/rfc2046.txtYou are not using the boundary correctly. The boundary lines need to start with 2 hyphens followed by the boundary. I don't know if hyphens are valid characters for boundaries (don't know the standards off the top of my head), but I would pick some random string instead just to be safe. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.