Archived

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

stepan-t

Add torrent file problem

Recommended Posts

I've read this topic http://forum.utorrent.com/viewtopic.php?id=25661 and trying to make a POST request ("/gui/?action=add-file") to add a file but it keeps responding to me with "invalid request" or just "error". Can anyone give me an example of valid POST request that adds a file?

(I've seen this http://forum.utorrent.com/viewtopic.php?id=27414, but it didn't helped cause I don't know curl and barely know PHP)

Solved. "Content-Type" and "Content-Length" values were passed as "content-length" and "content-type" and utorrent apparently uses case-sensitive search on HTTP headers

Share this post


Link to post
Share on other sites