|
GET
|
POST
|
1.
|
It is used for getting information from
the server side
|
It is used to post the information to the
server.
|
2.
|
It performs read-only operation
|
It performs update/write operation.
|
3.
|
Whatever the request can be sent that is
append with URL
|
Whatever request send to the server that
is not exposed in the URL
|
4.
|
Only text or character type of data can
be sent
|
Any type of data can be send
|
5.
|
Limited amount of data can be send (up to
2KB)
|
No length limit of data that we can send
|
6.
|
It provides less security because the
user’s request is directly exposed in URL bar. Hence, sensitive information is not recommended to be send.
|
It provides high security
|
7.
|
Bookmarking is possible which is the
advantage
|
Bookmarking is not possible
|
8.
|
Caching is also possible which is also another
advantage of get method
|
Caching is not possible
|
Thursday, 8 June 2017
GET vs. POST in Servlet
Subscribe to:
Posts (Atom)