Basic AJAX Question:
Download Questions PDF

Should I use an HTTP GET or POST for my AJAX calls?

Answer:

AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture.

Download AJAX Interview Questions And Answers PDF

Previous QuestionNext Question
Should I consider AJAX? Should I use XML or text, JavaScript, or HTML as a return type?