xbmc/xbmc — pull request #1506 by Montellese (2012-09-30 07:46:45+00:00)
Title: webserver: add support for passing JSON-RPC requests through HTTP GET arguments

In addition to the existing support for sending JSON-RPC requests through HTTP POST requests to the webserver this commit adds support for JSON-RPC requests through HTTP GET arguments. There are two ways of doing a request through HTTP GET:

1. Pass a full URL-encoded JSON-RPC request with the "request" argument
2. Pass the name of the JSON-RPC method to be executed with the "method" argument. This does not allow to send parameters.

I made this based on a discussion with @amet on IRC where he stated that he will miss the way to execute a HTTP-API command simply by calling a HTTP URL once the HTTP-API has been completely replaced by JSON-RPC. So I added this functionality which will make this possible.