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

tresrrr

  • 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 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'
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

basecase

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: CURL to download torrent
« Reply #1 on: September 12, 2019, 10:19:34 am »
Same here. I think they should just have a more detailed example in the documentation.