Quantcast
Channel: Is an entity body allowed for an HTTP DELETE request? - Stack Overflow
Browsing latest articles
Browse All 18 View Live

Answer by Remy Lebeau for Is an entity body allowed for an HTTP DELETE request?

As other answers have noted, using a request body with a DELETE request is ... questionable ... at best.RFC 9110 does say:A client SHOULD NOT generate content in a DELETE request unless it is made...

View Article



Answer by Moshe Katz for Is an entity body allowed for an HTTP DELETE request?

Severalotheranswers mention RFC 7231 which had effectively said that a DELETE request is allowed to have a body but it is not recommended.In 2022, RFC 7231 was superseded by RFC 9110: HTTP Semantics,...

View Article

Answer by Eneko for Is an entity body allowed for an HTTP DELETE request?

Practical answer: NOSome clients and servers ignore or even delete the body in DELETE request. In some rare cases they fail and return an error.

View Article

Answer by Roberto Polli for Is an entity body allowed for an HTTP DELETE...

Roy Fielding on the HTTP mailing list clarifies that on the http mailing list https://lists.w3.org/Archives/Public/ietf-http-wg/2020JanMar/0123.html and says:GET/DELETE body are absolutely forbidden to...

View Article

Answer by Eliezer Garza for Is an entity body allowed for an HTTP DELETE...

Using DELETE with a Body is risky... I prefer this approach for List Operations over REST:Regular OperationsGET /objects/Gets all ObjectsGET /object/IDGets an Object with specified IDPOST /objectsAdds...

View Article


Answer by Evert for Is an entity body allowed for an HTTP DELETE request?

tl;dr: Techically a DELETE request with a request body is allowed, but it's never useful to do so.I don't think a good answer to this has been posted, although there's been lots of great comments on...

View Article

Answer by Ashish for Is an entity body allowed for an HTTP DELETE request?

Might be the below GitHUb url will help you, to get the answer.Actually, Application Server like Tomcat, Weblogic denying the HTTP.DELETE call with request payload. So keeping these all things in mind,...

View Article

Answer by CleverPatrick for Is an entity body allowed for an HTTP DELETE...

It is worth noting that the OpenAPI specification for version 3.0 dropped support for DELETE methods with a body:see here and here for referencesThis may affect your implementation, documentation, or...

View Article


Answer by Simon Jin for Is an entity body allowed for an HTTP DELETE request?

This is not defined.A payload within a DELETE request message has no defined semantics;sending a payload body on a DELETE request might cause some existingimplementations to reject the...

View Article


Answer by Ben Fried for Is an entity body allowed for an HTTP DELETE request?

Just a heads up, if you supply a body in your DELETE request and are using a google cloud HTTPS load balancer, it will reject your request with a 400 error. I was banging my head against a wall and...

View Article

Answer by parker for Is an entity body allowed for an HTTP DELETE request?

In case anyone is running into this issue testing, No, it is not universally supported.I am currently testing with Sahi Pro and it is very apparent a http DELETE call strips any provided body data (a...

View Article

Answer by Neil McGuigan for Is an entity body allowed for an HTTP DELETE...

One reason to use the body in a delete request is for optimistic concurrency control.You read version 1 of a record.GET /some-resource/1200 OK { id:1, status:"unimportant", version:1 }Your colleague...

View Article

Answer by Sebastien Lorber for Is an entity body allowed for an HTTP DELETE...

It seems ElasticSearch uses this:https://www.elastic.co/guide/en/elasticsearch/reference/5.x/search-request-scroll.html#_clear_scroll_apiWhich means Netty support this.Like mentionned in comments it...

View Article


Answer by grzes for Is an entity body allowed for an HTTP DELETE request?

The 2014 update to the HTTP 1.1 specification (RFC 7231) explicitly permits an entity-body in a DELETE request:A payload within a DELETE request message has no defined semantics; sending a payload body...

View Article

Answer by evan.leonard for Is an entity body allowed for an HTTP DELETE request?

Some versions of Tomcat and Jetty seem to ignore a entity body if it is present. Which can be a nuisance if you intended to receive it.

View Article


Answer by Adam Rosenfield for Is an entity body allowed for an HTTP DELETE...

It appears to me that RFC 2616 does not specify this.From section 4.3:The presence of a message-body in a request is signaled by theinclusion of a Content-Length or Transfer-Encoding header field inthe...

View Article

Answer by Tomalak for Is an entity body allowed for an HTTP DELETE request?

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...

View Article


Is an entity body allowed for an HTTP DELETE request?

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?

View Article
Browsing latest articles
Browse All 18 View Live




Latest Images