hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1828) HttpDelete does not extend HttpEntityEnclosingRequestBase
Date Thu, 02 Mar 2017 11:57:45 GMT

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

Oleg Kalnichevski commented on HTTPCLIENT-1828:

I will not stand in your way but let me re-iterate the same things I have been saying over
and over again when this subject pops up

# DELETE request with body are monumentally *stupid*
# People who insist on doing stupid things have an easy way of doing it with a few lines of
custom code
# HttpClient 4.x conforms to RFC 2616 only. It does not conform to later revisions of the
# RFC 2616 states clearly and unambiguously that only PUT and POST requests can enclose body
# Allowing DELETE requests to enclose body and not doing likewise for GET and other method
would not only be silly but also contradictory.


> 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

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

View raw message