Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain data using a 'GET' request? #17

Open
mrmurphy opened this issue May 21, 2012 · 1 comment
Open

Obtain data using a 'GET' request? #17

mrmurphy opened this issue May 21, 2012 · 1 comment

Comments

@mrmurphy
Copy link

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants