Keep getting this error:
{ "version" : "1.1", "error" : { "name" : "JSONRPCError", "code" : 2, "message" : "Invalid parameter (Category)" } }
Not quite sure how to format the JSON to get it correctly though, I already correctly extract the filename/category/new link from the headers. But the JSON request is giving me troubles..
Tried multiple variations, this is what it is now but also tried without quotes/less quotes/whatever:
Code: Select all
curl -X POST -d '{"method": "appendurl", "params":{'"$filename"','"$dnzb_category"', 0, false, '"$new_link"', 0}}' -H 'content-type: application/json;' http://$username:$password@$host:$port/jsonrpc
https://www.dropbox.com/s/5sfu8ld91d3ot ... reShell.sh
Any help is much appreciated