webAPI - set download location

General support for problems installing or using Deluge
Post Reply
csgnyc
New User
New User
Posts: 6
Joined: Mon Aug 22, 2016 10:54 pm

webAPI - set download location

Post by csgnyc »

API works generally for adding downloads, but now I'd like to add download location.

I'm getting "HTTP/1.1 500 Internal Server Error" using this shell script:

Code: Select all

curl -b /tmp/cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "core.add_torrent_magnet", "params": ["MAGNET URL", "options":{"download_location":"/downloads/complete/"}], "id": 1}' http://192.168.1.9:8112/json
Tried to follow precedent without success. Any idea what's going wrong?
Post Reply