2010-10-15, 00:41
barrygordon Wrote:welshboy, I have had my best results using the raw TCP Socket. You enable that I believe in system/network "allow external control". The TCP port is 9090. you send to the port a simple sequence that looks like :
"POST /jsonrpc\r\n\r\n"+ the JSON object you wish to transmit as in
"POST /jsonrpc\r\n\r\n"+"{\"jsonrpc\": \"2.0\", \"method\": \"JSONRPC.Version\", \"id\": 1}"
This will return the version of JSON that is running. Took me a few days to figure it out so I empathize. I am not sure if the blank line between the "Prefix" and the JSON object is needed. You may be able to get away with a prefix of "POST /jsonrpc\r\n" or "POST /jsonrpc ". The above is all javascript syntax
Well on the RAW port you don't need to do anything besides send jsonobjects, we do strip anything which isnt' a jsonobject but you don't need to send it.
So for raw just putty in and {\"jsonrpc\": \"2.0\", \"method\": \"JSONRPC.Version\", \"id\": 1}