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