Add torrent from URLs example:
POST /api/v2/torrents/add HTTP/1.1User-Agent: FiddlerHost: 127.0.0.1Cookie: SID=your_sidContent-Type: multipart/form-data; boundary=---------------------------6688794727912Content-Length: length-----------------------------6688794727912Content-Disposition: form-data; name="urls"https://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E7.torrenthttps://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E8.torrent-----------------------------6688794727912Content-Disposition: form-data; name="savepath"C:/Users/qBit/Downloads-----------------------------6688794727912Content-Disposition: form-data; name="cookie"ui=28979218048197-----------------------------6688794727912Content-Disposition: form-data; name="category"movies-----------------------------6688794727912Content-Disposition: form-data; name="skip_checking"true-----------------------------6688794727912Content-Disposition: form-data; name="paused"true-----------------------------6688794727912Content-Disposition: form-data; name="root_folder"true-----------------------------6688794727912-- Copy
POST /api/v2/torrents/add HTTP/1.1User-Agent: FiddlerHost: 127.0.0.1Cookie: SID=your_sidContent-Type: multipart/form-data; boundary=---------------------------6688794727912Content-Length: length-----------------------------6688794727912Content-Disposition: form-data; name="urls"https://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E7.torrenthttps://torcache.net/torrent/3B1A1469C180F447B77021074DBBCCAEF62611E8.torrent-----------------------------6688794727912Content-Disposition: form-data; name="savepath"C:/Users/qBit/Downloads-----------------------------6688794727912Content-Disposition: form-data; name="cookie"ui=28979218048197-----------------------------6688794727912Content-Disposition: form-data; name="category"movies-----------------------------6688794727912Content-Disposition: form-data; name="skip_checking"true-----------------------------6688794727912Content-Disposition: form-data; name="paused"true-----------------------------6688794727912Content-Disposition: form-data; name="root_folder"true-----------------------------6688794727912--
Add torrents from files example:
POST /api/v2/torrents/add HTTP/1.1Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468User-Agent: FiddlerHost: 127.0.0.1Cookie: SID=your_sidContent-Length: length---------------------------acebdf13572468Content-Disposition: form-data; name="torrents"; filename="8f18036b7a205c9347cb84a253975e12f7adddf2.torrent"Content-Type: application/x-bittorrentfile_binary_data_goes_here---------------------------acebdf13572468Content-Disposition: form-data; name="torrents"; filename="UFS.torrent"Content-Type: application/x-bittorrentfile_binary_data_goes_here---------------------------acebdf13572468-- Copy
POST /api/v2/torrents/add HTTP/1.1Content-Type: multipart/form-data; boundary=-------------------------acebdf13572468User-Agent: FiddlerHost: 127.0.0.1Cookie: SID=your_sidContent-Length: length---------------------------acebdf13572468Content-Disposition: form-data; name="torrents"; filename="8f18036b7a205c9347cb84a253975e12f7adddf2.torrent"Content-Type: application/x-bittorrentfile_binary_data_goes_here---------------------------acebdf13572468Content-Disposition: form-data; name="torrents"; filename="UFS.torrent"Content-Type: application/x-bittorrentfile_binary_data_goes_here---------------------------acebdf13572468--
The above example will add two torrent files. file_binary_data_goes_here represents raw data of torrent file (basically a byte array).
file_binary_data_goes_here
Optional
Add torrent from URLs example:
Add torrents from files example:
The above example will add two torrent files.
file_binary_data_goes_hererepresents raw data of torrent file (basically a byte array).