CURL to download torrent
Posted: Wed Jun 15, 2016 8:39 pm
I am trying to make a applescript to send the torrents from local MAC, with POST method to begin the download.
The command I use:
The TorrentFile var is the posix path of the torrent.
After following the WebUI API Documentation: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
I just can't figure out how to to compose the CURL POST method to make it work.
Appreciate any help
The command I use:
Code: Select all
curl http://12.18.0.2:8081/command/upload --cookie "SID=" MyID " --header 'Content-Disposition: form-data; name="torrents"; filename="TorrentName"' --header 'Content-Type: application/x-bittorrent' --data 'TorrentFile'
After following the WebUI API Documentation: https://github.com/qbittorrent/qBittorrent/wiki/WebUI-API-Documentation
I just can't figure out how to to compose the CURL POST method to make it work.
Appreciate any help