Tuesday, November 29, 2011

What are the differences between GET and POST service methods?

A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount of information you can send back using a GET is restricted as URLs can only be 1024 characters. A POST request is a request to post (to send) form data to a resource on the server.:when we use GET request method in our servlet the browser pickup the data append the data to the URL as a query string. The sensitive data (like password ) can reviled.this is faster than Post request, because data is send through header.we can not send more than 1024 characters of data.
Category:Servlet Interview Questions

No comments:

Post a Comment