Author Topic: CURL to download torrent  (Read 1460 times)


  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
CURL to download torrent
« on: June 15, 2016, 10:39:56 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:

Code: [Select]
curl --cookie "SID=" MyID " --header 'Content-Disposition: form-data; name="torrents"; filename="TorrentName"' --header 'Content-Type: application/x-bittorrent' --data 'TorrentFile'
The TorrentFile var is the posix path of the torrent.

After following the WebUI API Documentation:
I just can't figure out how to to compose the CURL POST method to make it work.

Appreciate any help