65.9K
CodeProject is changing. Read more.
Home

Differences between GET and POST methods

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.81/5 (13 votes)

Jul 29, 2011

CPOL
viewsIcon

65232

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