Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 55975 invoked from network); 27 Sep 2007 15:32:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Sep 2007 15:32:56 -0000 Received: (qmail 90164 invoked by uid 500); 27 Sep 2007 15:32:45 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 90147 invoked by uid 500); 27 Sep 2007 15:32:45 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 90136 invoked by uid 99); 27 Sep 2007 15:32:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 08:32:44 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.177] (HELO moutng.kundenserver.de) (212.227.126.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Sep 2007 15:32:44 +0000 Received: from [85.180.1.194] (helo=[85.180.1.194]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1IavLi1uJU-0002AR; Thu, 27 Sep 2007 17:32:23 +0200 Message-ID: <46FBCD23.2000903@dubioso.net> Date: Thu, 27 Sep 2007 17:32:51 +0200 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070807 SeaMonkey/1.1.4 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: HTTP Response contains headers last References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/9JVW0P1s9SKM44SOc33T9Wcy5tK9tJRRkLk9 IA491ObZQAqqceAUMdFqkAvPPf/KYhZ/5o57Majhs+4xYGXdDD Oupavw2rQ9UYM9I/U4SsqdHMrdvPNPR X-Virus-Checked: Checked by ClamAV on apache.org Morris, Chris wrote: > I'm working with an API that returns the HTTP Response Headers after the > response body. This confuses the HTTPClient and PostMethod into > thinking that there is no body. We have code to handle footers in ChunkedInputStream. However, this is the first time that I encounter footers in the wild, so maybe that code is buggy. Could you please post a wire log, including headers and content? Feel free to obfuscate any sensitive information and cut the contents. http://jakarta.apache.org/httpcomponents/httpclient-3.x/logging.html > Is there a way for me to get direct > access to the response input stream so that I can parse it out myself? You can hack through the code of course. The socket's stream is not accessible directly, because the ChunkedInputStream has to parse the "chunked" encoding. Trailers are only allowed with chunked encoding. If you have to hack through the code anyway, you should rather fix what is broken than work around what is already there. > The information contained in this communication is > confidential, and is intended only for the sole use of > the recipient named above. [...] Always funny to read these footers on mails sent to public mailing lists... cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org