Difference Between Put And Post. Lets see these differences. PUT is idempotent but paradoxically PUT responses are not cacheablePOST sends data to a specific URI and expects the.
That resource might be a data-accepting process a gateway to some other protocol or a separate entity that accepts annotations. PUT method serves to be idempotent. Regardless of the number of times a given request is sent it will not fail to provide the same result.
Its quite possible valid and even preferred in some occasions to use PUT to create resources or use POST to update resources.
The URI in a POST request identifies the resource that will handle the enclosed entity. PUT is used to send data to a server to createupdate a resource. PUT method serves to be idempotent. If there is no file or resource there PUT creates one.
