Tuesday, 26 June 2012

Difference between GET and POST methods?

S.NoGETPOST
1GET is the simplest method of HTTP, and the point of get is to get something back from server.POST is more powerful request, it's like GET++. With POST, you can request something and at the same time you can send form data to the server.
2With GET, you can send limited(depending on server) amount of data.With POST, you can send large amount of data.
3The data you sent with GET is appended with url up in the browser bar, so whatever you send is exposed. Better not put sensitive data(like password etc..) as part of GET.The data you sent with POST is not exposed in url, so data is secured. And you can send large amount of data, files also.
4With GET, you can bookmark page.With POST, you can't bookmark page
5Data transmission is faster.Data transmission is slow.
6This is the default method for most of the browsers.POST is not default method and should be explicitly specified.
7GET is idempotent.POST is not idempotent.

No comments:

Post a Comment