Subscribe to Subscribers

Online Members

Kapil
More...

Resources » Definitions » General

Difference between GET & POST


Posted Date:     Category: General    
Author: Member Level: Gold    Points: 3



GET: Parameters are passed in the querystring. Maximum amount of data that can be sent via the GET method is limited to about 2kb.

POST: Parameters are passed in the request body. There is no limit to the amount of data that can be transferred using POST. However, there are limits on the maximum amount of data that can be transferred in one name/value pair.





Did you like this resource? Share it with your friends and show your love!


Responses to "Difference between GET & POST"
Author: Parvathi S    02 May 2009Member Level: Silver   Points : 1
post method is secure. When we use post method the contents will not be displayed in the address bar

When we use get method the contents will be transferred along with the url. so get method is not secure



Author: Deepika Haridas    04 Jun 2009Member Level: Gold   Points : 1
hi,

Thanks for all your responses.
Good point added..
keep sharing..

Thanks
Regards,
Deepika



Author: bommala    01 Mar 2010Member Level: Silver   Points : 1
hi, Deepika Haridas

please check once about your point of maximum amount of data that can be sent via the GET method is limited to about 2kb.I think this purely depends on browsers.some browsers like firefox supports upto 65,536 bytes.



Author: satyendra kr. Pandit    02 Mar 2010Member Level: Silver   Points : 2
We can send data to the data processing page by both the GET and POST methods of a form. Both methods are used in form data handling where each one has some difference on the way they work. We will discuss some of the differences.

As you have seen there is a character restriction of 255 in the URL. This is mostly the old browsers restriction and new ones can handle more than that. But we can't be sure that all our visitors are using new browsers. So when we show a text area or a text box asking users to enter some data, then there will be a problem if more data is entered. This restriction is not there in POST method.

In GET method data gets transferred to the processing page in name value pairs through URL, so it is exposed and can be easily traced by visiting history pages of the browser. So any login details with password should never be posted by using GET method.

As the data transfers through address bar ( URL ) there are some restrictions in using space, some characters like ampersand ( & ) etc in the GET method of posting data. We have to take special care for encoding ( while sending ) and decoding ( while receiving ) data if such special characters are present.

There are some special cases where advantage of using GET method is , one can store the name value pairs as bookmark and directly use them by bypassing the form.



Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Next Resource: Steganography: Atechnique of Data Hiding
    Previous Resource: decodeURI() & encodeURI()
    Return to Resources
    Post New Resource
    Category: General


    Post resources and earn money!
     
    More Resources
    Popular Tags   Tag posting guidelines   Search Tags  
    Get Method  .  Post Method  .  

    Active Members
    TodayLast 7 Daysmore...

    Awards & Gifts
    Talk to Webmaster Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2013 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.