Google News
logo
Java Servlets - Interview Questions
What is the difference between GET and POST method?
* GET is a safe method (idempotent) where POST is non-idempotent method.

* We can send limited data with GET method and it’s sent in the header request URL whereas we can send large amount of data with POST because it’s part of the body.

* GET method is not secure because data is exposed in the URL and we can easily bookmark it and send similar request again, POST is secure because data is sent in request body and we can’t bookmark it.

* GET is the default HTTP method whereas we need to specify method as POST to send request with POST method.

* Hyperlinks in a page uses GET method.
Advertisement