webAPI - set download location
Posted: Tue May 30, 2017 5:54 pm
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:
Tried to follow precedent without success. Any idea what's going wrong?
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