0

I hit HTTP GET api to fetch the data from server end.

I have some data(json data) that i want to send to server to make some decision based on that.

Right now, we are doing and duplicating all this on client side since we don't have anyway to pass it to the server.

Any suggestions? We don't want to use POST.

Sahil Sharma
  • 3,027
  • 3
  • 29
  • 71
  • Please add your code/sample thereof. It is possible to send data in the request body of the get, but probably worth having a read of this first: http://stackoverflow.com/questions/978061/http-get-with-request-body – Murray Foxcroft Jun 06 '16 at 14:40
  • Are you trying to send `json` through a GET? – Luiso Jun 06 '16 at 14:44
  • Yes. I am trying to send Jason through get, and not in url parameter – Sahil Sharma Jun 06 '16 at 15:29
  • *So, yes, you can send a body with GET, and no, it is never useful to do so.* - Please avoid such a big mistake and use the appropriate HTTP method (in your situation POST). – Federico Dipuma Jun 06 '16 at 20:15

0 Answers0