Should HTTP POST be discouraged? -


Quoted from

:

It is recommended that you post when possible , Because proxy and other network moderators will sometimes need to resend POST requests, which can result in duplicate documents creation.

In my understanding, it should not be at protocol level (a confused user who is armed with a DoubleClick is a completely different story) What is the best way to act, then ?

Should we really try to avoid post requests and replace it with Put? I do not like it because they express a different meaning.

Should we keep this hope and protect the request by unique ID where we want to avoid accidental repetition? I do not like it: it makes the code complicated and prevents situations where multiple identical posts may be required.

Should we really try to avoid post requests and replace by PUT? I do not like it because they express a different meaning.

To create a document (as you mentioned in the document), this is exactly the meaning. Sometimes, the insult request is not a problem for document modification.


Comments