Pregunta de entrevista de Apple

What's the difference between http put and post?

Respuesta de la entrevista

Anónimo

29 abr 2016

They both can be used to create a resource, but PUT is idempotent and POST is not, i.e. making the same PUT request multiple times will always produce the same result. Also, with PUT you update the resource located at the URI you post toPOST is generally used without a specific URI `POST /todo/items`