Authenticating problems with API
Posted: Mon May 15, 2017 10:01 pm
I have been through these boards, and I think I'm following instructions.
If I enter
I get a response that includes session_id.
If I then enter
I get a "not authenticated" message. I have tried other commands and get the same error.
My web interface for deluge is at 192.168.1.10:8112, but I note that 192.168.1.10:8112/json is an empty page. I'm on a synology if that makes a difference.
If I enter
Code: Select all
curl -c cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "auth.login", "params": ["deluge"], \"id\": 1}' http://192.168.1.10:8112/json
If I then enter
Code: Select all
curl -b cookies.txt --compressed -i -H "Content-Type: application/json" -H "Accept: application/json" -X POST -d '{"method": "web.connected", "params": [], "id": 1}' http://192.168.1.10:8112/json
My web interface for deluge is at 192.168.1.10:8112, but I note that 192.168.1.10:8112/json is an empty page. I'm on a synology if that makes a difference.