Click here to Skip to main content
15,868,292 members
Articles / Web Development / ASP.NET
Alternative
Tip/Trick

Differences between GET and POST methods

Rate me:
Please Sign up or sign in to vote.
4.81/5 (13 votes)
29 Jul 2011CPOL 64.1K   9   6
GET method:Data is appended to the URL. - correctData is publicly available. - correctIt is a single call system. - GET/POST/PUT methods both send and receive response/dataMaximum data that can be sent is 256. - browser dependant up to 4KData transmission is faster. - GET/POST/PUT...

GET method:



  1. Data is appended to the URL. - correct
  2. Data is publicly available. - correct
  3. It is a single call system. - GET/POST/PUT methods both send and receive response/data
  4. Maximum data that can be sent is 256. - browser dependant up to 4K
  5. Data transmission is faster. - GET/POST/PUT methods all transmit at the same speed
  6. This is the default method for many browsers. - For non-form based data only

POST method:



  1. Data is not appended to the URL. - POST data can either be appended to the URL or in body
  2. Data is secret. - only for https sessions otherwise is public
  3. It is a two call system. - GET/POST/PUT methods both send and receive response/data
  4. There is no limit on the amount of data. That is, any amount of data can be sent. - correct
  5. Data transmission is comparatively slow. - GET/POST/PUT methods all transmit at the same speed
  6. No default and should be explicitly specified - it is possible to transmit POST data on a GET method

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralWhat kind of example are you looking for? Pin
Graeme_Grant3-Aug-11 13:45
mvaGraeme_Grant3-Aug-11 13:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.