- 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.
JSP / Servlet - Interview
Saturday, 5 September 2015
What is the difference between GET and POST method?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment