dopost and doget
Advertisements
Difference Between dopost and doget in Servlet
Http protocol mostly use either get or post methods to transfer the request. post method are generally used whenever you want to transfer secure data like password, bank account etc.
Get method | Post method | |
---|---|---|
1 | Get Request sends the request parameter as query string appended at the end of the request. | Post request send the request parameters as part of the http request body. |
2 | Get method is visible to every one (It will be displayed in the address bar of browser ). | Post method variables are not displayed in the URL. |
3 | Restriction on form data, only ASCII characters allowed. | No Restriction on form data, Binary data is also allowed. |
4 | Get methods have maximum size is 2000 character. | Post methods have maximum size is 8 mb. |
5 | Restriction on form length, So URL length is restricted | No restriction on form data. |
6 | Remain in browser history. | Never remain the browser history. |
Google Advertisment