3 ms·
> If i understand the common critique from the comments here it's that GET with a body, while not bad on its face, is nevertheless discouraged because you're ga
by dragonwriter 5y ago
> If i understand the common critique from the comments here it's that GET with a body, while not bad on its face, is nevertheless discouraged because you're gambling with any number of intermediate systems that may strip the body from the request.
That's a problem.
> But what about DELETE with body? It's similarly unspecified,
And faces the same risk that intermediate systems might reject it or strip the body, called out in RFC 7231.
> But a DELETE is by nature a mutating event,
DELETE is, more to the point, and despite being idempotent, expressly not cacheable, so there is no risk of getting served the wrong cached response based on the body being stripped. But, aside from the request not fitting the defined semantics of what DELETE means, you still have the risk of rejection or the request having the body stripped.