[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15893968#comment-15893968
 ] 

Sebb commented on HTTPCLIENT-1828:
----------------------------------

RFC 7231 says [1]:

{quote}
A payload within a DELETE request message has no defined semantics;
sending a payload body on a DELETE request might cause some existing
implementations to reject the request.
{quote}

AFAICT from a quick scan of 7231, the only verb that explicitly disallows a 
body is TRACE.
For some of the others, such as DELETE, there are no defined semantics but the 
body is not disallowed.

[1] https://tools.ietf.org/html/rfc7231#page-30 

> HttpDelete does not extend HttpEntityEnclosingRequestBase
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-1828
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1828
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>    Affects Versions: 4.5.1, 4.5.2, 4.5.3
>            Reporter: Saravanakumar Selvaraj
>             Fix For: 5.0 Alpha1
>
>
> Sending body in DELETE is allowed as the HTTP 1.1 specification does not 
> forbid. Hence HttpDelete.class should extend from 
> HttpEntityEnclosingRequestBase instead of HttpRequestBase.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to