hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Levan (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (HTTPCLIENT-1124) Can't send request body with HTTP methods other than POST and PUT
Date Wed, 07 Sep 2011 16:07:10 GMT

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

Alexey Levan edited comment on HTTPCLIENT-1124 at 9/7/11 4:06 PM:
------------------------------------------------------------------

Yes it should be ignored by the server, but that doesn't mean that client
can't send the body. In fact, the part you cited just confirmed that it's
possible. It should be up to the library user to decide whether he wants to
send such a meaningless message.

      was (Author: exlevan):
    Yes it should be ignored by the server, but that doesn't mean that client
can't send the body. In fact, the part you cited just confirmed that it's
possible. It should be up to the library user to decide whether he wants to
send such a meaningless message.

07.09.2011 18:52 пользователь "William R. Speirs (JIRA)" <jira@apache.org>
https://issues.apache.org/jira/browse/HTTPCLIENT-1124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099045#comment-13099045]
defined semantics for an entity-body, then the message-body SHOULD be
ignored when handling the request." As the GET method does not describe a
semantics for an entity-body, I do not think it's unrealistic for the client
to not allow it to be included.
of request. The HTTP spec doesn't prohibit that (AFAIK, even GET requests
with body are allowed), and any spec-compliant implementation shouldn't do
it either. I suggest merging HttpEntityEnclosingRequestBase with
HttpRequestBase, since there's really no reason to make this artifical
restriction.

  
> Can't send request body with HTTP methods other than POST and PUT
> -----------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1124
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1124
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.1.2
>            Reporter: Alexey Levan
>            Priority: Minor
>
> I'd like to have a possibility to send an HttpEntity regardless of method of request.
 The HTTP spec doesn't prohibit that (AFAIK, even GET requests with body are allowed), and
any spec-compliant implementation shouldn't do it either.  I suggest merging HttpEntityEnclosingRequestBase
with HttpRequestBase, since there's really no reason to make this artifical restriction.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


Mime
View raw message