2016-08-18, 19:25
Hi,
I am sending JSON-RPC commands to the JSONRPC interface of kodi via HTTP from a Javascript client. On the client, I use jQuery and Ajax to send the request:
This is the code:
It works very well, but using Firebug on Firefox to monitor the HTTP communications, I noticed that Kodi does not send back any response to the HTTP POST request.
Am I doing something wrong?
Do I have write Phyton code to generate the response?
I am sending JSON-RPC commands to the JSONRPC interface of kodi via HTTP from a Javascript client. On the client, I use jQuery and Ajax to send the request:
This is the code:
Code:
$.ajax({
url: '/jsonrpc',
type: 'POST',
async: true,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
data: json_str,
dataType: 'json'
});
It works very well, but using Firebug on Firefox to monitor the HTTP communications, I noticed that Kodi does not send back any response to the HTTP POST request.
Am I doing something wrong?
Do I have write Phyton code to generate the response?