2013-01-18, 17:23
OK could you try this code also? (change "url=" variable for your needs)
But please not just one. Few times.
But please not just one. Few times.
PHP Code:
import simplejson as json
import urllib2
url = 'http://localhost:8080'
jsonrpcurl = url + '/jsonrpc'
request = urllib2.Request(jsonrpcurl)
request.add_header('Content-Type', 'application/json')
XBMC_GetInfoLabels_SystemKernelVersion = json.dumps({"jsonrpc":"2.0", "method":"XBMC.GetInfoLabels", "params":{"labels":["System.KernelVersion"]}, "id":"1"})
respdata = urllib2.urlopen(request, XBMC_GetInfoLabels_SystemKernelVersion).read()
print json.dumps(json.loads(respdata), indent=4)