When issuing an HTTP DELETE request, the request URI should completely identify the resource to delete. However, is it allowable to add extra meta-data as part of the entity body of the request?
When issuing an HTTP DELETE request, the request URI should completely identify the resource
Share
The spec does not explicitly forbid or discourage it, so I would tend to say it is allowed.
Microsoft sees it the same way (I can hear murmuring in the audience), they state in the MSDN article about the DELETE Method of ADO.NET Data Services Framework:
Additionally here is what RFC2616 (HTTP 1.1) has to say in regard to requests:
Content-LengthorTransfer-Encodingheader (section 4.3)For responses, this has been defined:
Update
And in RFC 9110 (June 2022), The fact that request bodies on GET, HEAD, and DELETE are not interoperable has been clarified.
section 9.3.5 Delete