Hi folks,
I’m trying to create a custom command with HTTP POST, but I don’t get it to work.
What I got working is to create a JSON-RPC command like this:
JSON-RPC method : Player.PlayPause
JSON-RPC params : {“playerid”:0}
I create a HTTP Custom Command like this:
Name : NewName
Command Type : HTTP POST
Server:Port : 192.168.178.108:8080
Path : (no specific url)
Post data : {“jsonrpc”:“2.0”,“method”:“Player.PlayPause”,“params”:{“playerid”:0},“id”:1}
Login : (my login)
Password : (my password)
Timeout : 10 (by default)
Content Type : application/json
Do not show errors : no
Show response : yes (translated this from german)
Under “Content-Type” there are 4 feelds with “name” and “value”. I don’t know what to type in there and left it empty. Is that right?
When I click the command I get a longer html script as response, but the command doesn’t work. So the login is working, but the script is not.
Do you have any idea how to get it to work? Or do you have an example thats working?
Thanks for your help!