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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.