Kodi Community Forum

Full Version: V11.0 HTTP Control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys

I've just changed from Windows Media Centre to XBMC (v11.0 Eden Beta) and am impressed with the features, but....... With WMC I could control the program (and receive/parse data) via either a TCP socket or web browser and I'd like to do the same with XBMC.
However, I don't seem to be able to - I've tried unsuccessfully to use a web browser to send commands but just get back a "file not found" response. I'm not up to speed on the JSON-RPC API so maybe it's a syntax error?
Using the Chrome simple REST console to send commands gets a "Bad Request" response?
What would be useful is if someone could post an example string I could look at, e.g. http://192.168.x.x:9090/xxxxxx.
The JSON-RPC API v3 help pages show "Application.Quit".......how does that translate to a HTTP request?
Any help would be appreciated!

I
have you activated the Webinterface in System Settings and are using the right Port-Number?
Yes, all settings are correct as is the port number is - I can connect to the web interface of XBMC in a browser so I'm assuming it's not port related. Definately think it's a syntax error.....I'm a control systems programmer but I'm used to working with serial protocols, not Java et al...
sorry, I'm no developer myself, so I can only help with a bit of Google-Fu Wink
You might find this helpful:
http://forum.xbmc.org/showthread.php?tid=88117&page=3
http://wiki.xbmc.org/index.php?title=JSON-RPC_API
ok thanks.
I've read the thread and tried some of the examples for HTTP but still can't get it to work!
Any developers out there who could post some example HTTP requests/commands that can be pasted into a browser address bar?
If someone can provide an example for a more complex command (VideoLibrary.GetMovies etc) I should be able to work out the rest of the commands i need from that.
I understand the concept of JSON-RPC but I'm not sure what the correct syntax is (whether curly braces/backslashes/commas are needed or not and where they should go in the string)

Any help would be appreciated....