S.No | GET | POST |
---|---|---|
1 | GET 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. |
2 | With GET, you can send limited(depending on server) amount of data. | With POST, you can send large amount of data. |
3 | The 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. |
4 | With GET, you can bookmark page. | With POST, you can't bookmark page |
5 | Data transmission is faster. | Data transmission is slow. |
6 | This is the default method for most of the browsers. | POST is not default method and should be explicitly specified. |
7 | GET is idempotent. | POST is not idempotent. |
Tuesday, 26 June 2012
Difference between GET and POST methods?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment