Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 739338130 for ; Wed, 7 Sep 2011 16:03:41 +0000 (UTC) Received: (qmail 3047 invoked by uid 500); 7 Sep 2011 16:03:41 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 2777 invoked by uid 500); 7 Sep 2011 16:03:40 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 2766 invoked by uid 99); 7 Sep 2011 16:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 16:03:40 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 16:03:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BE78085782 for ; Wed, 7 Sep 2011 16:03:16 +0000 (UTC) Date: Wed, 7 Sep 2011 16:03:16 +0000 (UTC) From: "Alexey Levan (JIRA)" To: dev@hc.apache.org Message-ID: <1271875274.26184.1315411396777.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1809701490.25886.1315407850145.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HTTPCLIENT-1124) Can't send request body with HTTP methods other than POST and PUT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCLIENT-1124?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D13099058#comment-13099058 ]=20 Alexey Levan commented on HTTPCLIENT-1124: ------------------------------------------ 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 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0= =B5=D0=BB=D1=8C "William R. Speirs (JIRA)" https://issues.apache.org/jira/browse/HTTPCLIENT-1124?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13099= 045#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 clien= t 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-112= 4 > 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 HttpRequ= estBase, 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