Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 8804 invoked from network); 12 Jan 2009 13:53:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2009 13:53:45 -0000 Received: (qmail 55790 invoked by uid 500); 12 Jan 2009 13:53:44 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 55762 invoked by uid 500); 12 Jan 2009 13:53:44 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 55751 invoked by uid 99); 12 Jan 2009 13:53:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 05:53:44 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.150.250.44] (HELO ok2consulting.nine.ch) (217.150.250.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 13:53:35 +0000 Received: by ok2consulting.nine.ch (Postfix, from userid 1002) id 0F920198562; Mon, 12 Jan 2009 14:53:14 +0100 (CET) Received: from [10.14.97.137] (unknown [213.55.131.1]) by ok2consulting.nine.ch (Postfix) with ESMTP id 1063519855F for ; Mon, 12 Jan 2009 14:53:09 +0100 (CET) Subject: Re: HttpURLConnection style OutputStream usage From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <6a0454270901120211s48b15d76x276adca7e0d824c5@mail.gmail.com> References: <6a0454270901120211s48b15d76x276adca7e0d824c5@mail.gmail.com> Content-Type: text/plain Date: Mon, 12 Jan 2009 14:42:36 +0100 Message-Id: <1231767757.5995.1.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on ok2consulting.nine.ch X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.3 On Mon, 2009-01-12 at 15:41 +0530, Santosh Gangadhar wrote: > Hi all, > Is there a way to use Http Client in the HttpURLConnection style where one > can extract the OutputStream from it any write the data to be sent to the > server in chunked encoding. I have explored RequestEntity(s) already but > these do not suit the requirement. We want the invocation to be the other > way round i.e. the code to invoke HttpClient (via OutputStream). Rather than > HttpClient invoking the code (via RequestEntity). > No, there is not. The use of RequestEntity instead of OutputStream enables HttpClient to automatically retry requests in case of I/O or an authentication failure. Oleg > Thanks, > Santosh. --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org