Thursday, 8 December 2016

What is the difference between GET and POST method ?

Here we will discuss all the differences between HTTP get() and post() method.


Get()
Post()
Get is idempotent method.
Post is non-idempotent method.
Get is default HTTP method.
For post we need to specify method as post to send request.
Get sends data through URL (Uniform Resource Locator).
Post sends data through body .
Get can send only limited data because it sends through URL (data length restriction).
Post can send unlimited data because it sends through body (no data length restriction).
Get method is not secure.
Post method is secure.
Get Only allow ASCII characters.
Post allow all data even binary data is also allowed.
Get request (parameters) remain in the browser history.
Post request (parameters) do not remain in the browser history.
Get request can be cached.
Post request cannot cached.



Blog Author - Pushkar Khosla,
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.

This blog is all about to learn Core Java ,Interview Programs and Coding tricks to polish your Java Knowledge. If you like the content of this blog please share this with your friends.



No comments:

Post a Comment