Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 36141 invoked from network); 18 Dec 2006 21:53:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 21:53:01 -0000 Received: (qmail 93080 invoked by uid 500); 18 Dec 2006 21:53:08 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 93067 invoked by uid 500); 18 Dec 2006 21:53:08 -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 93056 invoked by uid 99); 18 Dec 2006 21:53:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 13:53:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.179] (HELO moutng.kundenserver.de) (212.227.126.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Dec 2006 13:52:56 -0800 Received: from [85.180.62.104] (helo=[85.180.62.104]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1GwQPT0LvB-0002SM; Mon, 18 Dec 2006 22:52:35 +0100 Message-ID: <45870E6A.1080405@dubioso.net> Date: Mon, 18 Dec 2006 22:55:54 +0100 From: Roland Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 SeaMonkey/1.0.6 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: Problem with POST using proxy References: <4587002F.7000505@deepwebtech.com> In-Reply-To: <4587002F.7000505@deepwebtech.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:4601b1d39ab4ddfc21c613822e406392 X-Virus-Checked: Checked by ClamAV on apache.org Hello Alex, > From the debug statements, it seems to me > that httpclient is sending all the headers first, then getting a > response including the proxy response. Then it sends the actual POST > parameters, but appears to not send the headers again. This request > times out, but using the browser works fine. this is called the expect-continue handshake. The request line and headers are sent, and one of the headers is "Expect: 100-continue". The client then waits for an _intermediate_ response with status code 100 before sending the request body. There is nothing wrong here, except that the server isn't responding. I doubt that your browser just sends that request. I would expect that the browsers starts by sending a request for the page that holds the web form, submitting it only afterwards once you've entered something. If you're only sending the POST using HttpClient, the server may behave differently because the request is not part of an established session. Our Client HTTP Programming Primer describes in great detail how to simulate browser behaviour when submitting an HTML form. It also suggests things to try if you run into problems: http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners hope that helps, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org