Obtain data using a 'GET' request? #17

Open
splodingsocks opened this Issue May 21, 2012 · 1 comment

Projects

None yet

2 participants

@splodingsocks

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

@manishtomar

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment