jsonrpclib icon indicating copy to clipboard operation
jsonrpclib copied to clipboard

Obtain data using a 'GET' request?

Open mrmurphy opened this issue 13 years ago • 1 comments

Hi! This package looks great. I don't know if I'm just doing things wrong, but I can't seem to get the server to return any data to me through a standard browser request.

When I go to the address in the bar in my browser that my server is listening on, I get this response:


Error response

Error code 501.

Message: Unsupported method ('GET').

Error code explanation: 501 = Server does not support this operation.


Is this an unsupported action? I need to call functions on the server with an HTTPRequest object from within Flex, ultimately. And I think that the default method of that object is 'GET'.

I hope that was clear. Thanks! Murphy

mrmurphy avatar May 21 '12 21:05 mrmurphy

JSON RPC calls over HTTP are made using HTTP POST requests as the method information is stored in HTTP request body. HTTP response body contains JSON RPC response. Hence, any JSON RPC server would accept only POST requests for JSON RPC calls.

manishtomar avatar Sep 07 '12 21:09 manishtomar