Jump to content

difference between GET and POST method


murli800

Recommended Posts

Also, GET, as the name implies is for retrieval.  POST is for actions that have consequences: add, update, delete, send email, etc...

But, those conventions are not enforced in any browser or code that I know of. You can use GET to set data to be updated, etc and it will work as long as you code your script to use the data that way.

 

Ken

Also, GET, as the name implies is for retrieval.  POST is for actions that have consequences: add, update, delete, send email, etc...

But, those conventions are not enforced in any browser or code that I know of. You can use GET to set data to be updated, etc and it will work as long as you code your script to use the data that way.

 

Ken

 

Because browsers have no idea what will happen when the data is sent to the server.  Developers should develop to the HTTP spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

 

Also, most (if not all) browser will give a warning if you attempt to resubmit a form but not a get link.

Also, GET, as the name implies is for retrieval.  POST is for actions that have consequences: add, update, delete, send email, etc...

But, those conventions are not enforced in any browser or code that I know of. You can use GET to set data to be updated, etc and it will work as long as you code your script to use the data that way.

 

Ken

 

Because browsers have no idea what will happen when the data is sent to the server.  Developers should develop to the HTTP spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

 

Also, most (if not all) browser will give a warning if you attempt to resubmit a form but not a get link.

 

Developers should develop with semantics in mind anyway.  They're the basis for RESTful systems.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.