Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 93330 invoked from network); 18 Feb 2009 10:59:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 10:59:22 -0000 Received: (qmail 74427 invoked by uid 500); 18 Feb 2009 10:59:21 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 74400 invoked by uid 500); 18 Feb 2009 10:59:21 -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 74389 invoked by uid 99); 18 Feb 2009 10:59:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 02:59:21 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.146.189.31] (HELO web23006.mail.ird.yahoo.com) (217.146.189.31) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Feb 2009 10:59:12 +0000 Received: (qmail 18163 invoked by uid 60001); 18 Feb 2009 10:58:49 -0000 Message-ID: <111817.17360.qm@web23006.mail.ird.yahoo.com> X-YMail-OSG: bUJmkDsVM1nUwFk8zq09ksfnRDnYiAgWFLure5PQn1RhxK9dpaLZY854DyFmCfAksSRrNLGxE81rF4h0gCXeCN78ZVfFMMsBpWHWtshjrOZrnesIk1g6PawX8Z.hLo5XjBMATg1bWhre9sKwWMEPxCUDGh1yfOdn6PKhYHQFeClwOr6_nPdaCmdwAZc2PW1oJzoeVm0KU2HTjlvZRIHVKfPPrsXp79s4H3yZmLAb4EhHo39u Received: from [212.190.144.11] by web23006.mail.ird.yahoo.com via HTTP; Wed, 18 Feb 2009 10:58:49 GMT X-RocketYMMF: darkman_spam X-Mailer: YahooMailWebService/0.7.289.1 Date: Wed, 18 Feb 2009 10:58:49 +0000 (GMT) From: Florent Georges Reply-To: lists@fgeorges.org Subject: Re: Writing the content of an entity To: HttpClient User Discussion In-Reply-To: <91ae21990902172119r54b4ebbdke9e4932b09eb9f44@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subhash Chandran wrote: Hi, Thanks for your response. > AFAIK, HttpEntity InputStream takes your InputStream and > writes to request body. Only thing is, you don't deal with the > process of looping through your InputStream and writing to > OutputStream (as u would do in HttpURLConnection). > In short, the InputStream method does push the content, not > pull it as u had assumed. I am not sure to follow... Are you saying that because the implementation of InputStreamEntity, at some point, writes to an output stream, then the interface is a push interface instead of a pull interface? Frankly, that sounds quite weird to me, but I have maybe missed something. But the point is not rhetorical, and the goal is to be able to avoid to bufferize the output of the subsystem that actually generates the entity content (to an output stream,) what would be required only to give an InputStream, or a String as content. Regards, --=20 Florent Georges http://www.fgeorges.org/ =0A=0A=0A --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org