State the difference between GET and POST?

January 27, 2012

You would use GET when the request is idempotent, meaning that multiple requests generate the same result. In general use GET to retrieve data from the server, in other words try to change the state on the server with a GET call. Use POST methods anytime you are changing the state on the server with a GET call. In POST you are required to set the content-Type header on the XMLHttpRequest.

Related Interview Questions:

  1. What do I do on the server to interact with an AJAX client?
  2. What do I do on the server to interact with an AJAX client?
  3. How do we handle concurrent AJAX requests?
  4. Should I use an HTTP GET or POST for my AJAX calls?
  5. Should I use an HTTP GET or POST for my AJAX calls?

Leave a Comment

Previous post:

Next post: