MY mENU


Friday 16 March 2012

Difference between GET and POST ?




               GET
            
                   POST   


Designed to get the data from web server


Designed to send the data to web server    

Can send limited amount of data to the server along with request.


Can send unlimited amount of data to the server

Query string will be visible in the browser address bar due to this there is no data secrecy


Query string will not be visible in the browser address bar  due to this there will be data secrecy.       

Not suitable for file uploading


 Suitable for file uploading   

Can’t send the data by applying encryption


Can send the data by applying encryption.

Default  HttpRequest method for request is Get()


This  is not default

Use  doGet() mehod or service() to receive request  and to process request in HttpServlet

Use  doPost() method or service() method to receive request and to process the request.     
    

Get is idempotent

Post is not idempotent.


No comments:

Post a Comment