2015년 1월 6일 화요일

xbmc/kody json post, please help

Hi, i have two llinux. The first one, as a homeserver and a second with XBMC/Kodi. If i execute this on the first one:
curl --request POST --data '{"jsonrpc":"2.0","method":"Input.Left","id":1}' -"Content-type:application/json" http://xbmc:xbmc@192.168.1.54:8081/jsonrpc

Works right. But if i try this:
it doesn't works, allways respond with a 401 error :( I think that i need the header "Content-type:application/json" ... or something ... please help me.



i have somthing working

send me a mail on richard6360@gmail.com and i wil help you further.



and what prevents you to use a header?

RequestHeaders
The request headers, as a list of two-element sublists. The first element of each sublist represents the request header field name. The second element of each sublist represents the request header field values, either a single value or a list containing multiple values.

and an example see here https://puravidaapps.com/spreadsheet.php

@Richard: why don't you just answer the question in the forum? Also other users might be interested in your answer. This is how a forum works.




Try it without the first and last '

and without any password parameters
this is working in kodi

{"jsonrpc": "2.0", "method": "Player.PlayPause", "params": { "playerid": 1 }, "id": 1}



@richardvansoest  thanks!!!!! it works


댓글 없음:

댓글 쓰기