Hi,
Just updated from Eden to Frodo and it looks like CURL commands doesnt work anymore and the API had important schema change that i cant find on the wiki
Basicly im getting
HTTP/1.1 415 Unsupported Media Type
for every call for example
curl -i -X POST -d '{"jsonrpc":"2.0", "method":"Application.Quit"}' http://xbmc:www@localhost:8080/jsonrpc
curl -i -X POST -d '{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "dvd://dev/dvd" } }, "id": 1 }' http://xbmc:www@localhost:8080/jsonrpc
HTTP/1.1 415 Unsupported Media Type
Content-Length: 0
Date: Mon, 28 Jan 2013 13:17:40 GMT
Thanks,
API on frodo HTTP/1.1 415 Unsupported Media Type
ranpow
Junior Member Posts: 13 Joined: Dec 2012 Reputation: 0 |
2013-01-28 15:24
Post: #1
|
| find quote |
Montellese
Team-XBMC Developer Joined: Jan 2009 Reputation: 20 Location: Switzerland |
2013-01-28 15:34
Post: #2
As mentioned many times already and as also explained in the "Frodo API changes" article on the wiki (see http://wiki.xbmc.org/index.php?title=Fro...#HTTP_POST ) you need to specify the
Code: Content-Type: application/jsonAlways read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
ranpow
Junior Member Posts: 13 Joined: Dec 2012 Reputation: 0 |
2013-01-28 15:55
Post: #3
Thanks,
The -H over looked it on the wiki. |
| find quote |


![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help