curl --request POST --data '{"jsonrpc":"2.0","method":" Input.Left","id":1}' -H "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?
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.
see also the documentation http://ai2. appinventor.mit.edu/reference/ components/connectivity.html# Web
RequestHeaders
댓글 없음:
댓글 쓰기