Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 31455 invoked from network); 26 Mar 2008 00:19:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 00:19:13 -0000 Received: (qmail 50100 invoked by uid 500); 26 Mar 2008 00:19:10 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 50084 invoked by uid 500); 26 Mar 2008 00:19:10 -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 50075 invoked by uid 99); 26 Mar 2008 00:19:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 17:19:10 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hjw1985@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 00:18:30 +0000 Received: by fg-out-1718.google.com with SMTP id d23so3001532fga.32 for ; Tue, 25 Mar 2008 17:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=KbibrAGRqaF0EXcLk5c7dlZ6Qc0EoASbChv8uvxJbi0=; b=WMc4AJ7pfpAdVA3I/RlNDJ/IfioIEBy2v/56t64VQWgjtreIa1SpEL2dBPYBv+g4kjsDc257Q8Vk51wPwAWiMabMQEwM+2rJy/RDKnnJ4rht+ipxiglUYrCaONAKr3rtIPXWA/bPiwLWosUriYex5A9E56nm2xhZNOyd++vJe0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=E1dm/rYPgeOi1kDAoa7iakSPQIgSM0hpp3FyQZZxFY+rBT6MU8ep9kTQnUU+AghCI560X75cKyIVOpXsfgev+qzpuCp2oIZQkd52gmZTMUNq+mchUI5PyQBFhx+GEUjtD2ks0gb3rYcCEBKNxHeNQ8q8SLVUSjGfULeMBZZu88I= Received: by 10.86.96.18 with SMTP id t18mr5921851fgb.13.1206490720838; Tue, 25 Mar 2008 17:18:40 -0700 (PDT) Received: by 10.86.50.12 with HTTP; Tue, 25 Mar 2008 17:18:40 -0700 (PDT) Message-ID: <827259cb0803251718n6f208f70j127b5b7eff6bac61@mail.gmail.com> Date: Wed, 26 Mar 2008 08:18:40 +0800 From: hjw To: "HttpClient User Discussion" Subject: Re: A proble with the buffer In-Reply-To: <1206476150.5731.27.camel@ubuntu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_411_33532582.1206490720851" References: <827259cb0803250703hea3bd7dv7fa1cf3f12590f9c@mail.gmail.com> <1206476150.5731.27.camel@ubuntu> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_411_33532582.1206490720851 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Oleg Use #getResponseAsStream() is not ok,because once #executeMethod(),the response will receive automaticly 2K data,what I want likes HeadMethod which only receives the header ,but HeadMethod could not get the response. 2008/3/26, Oleg Kalnichevski : > > > On Tue, 2008-03-25 at 22:03 +0800, hjw wrote: > > Hi ,all > > > > When I call method executeMethod() in HttpClient ,usually the methed > > executed and did not call getResponseAsString() ,the length of the > response > > is 2K,I think this is the buffer of HttpClient , Is it right? If it is > > right,how can I change the size of the buffer? If it is not, Could you > point > > out what I miss ? > > > > Regards > > > > Raymond > > Use #getResponseAsStream() and whatever buffer size you please > > Oleg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org > For additional commands, e-mail: httpclient-users-help@hc.apache.org > > ------=_Part_411_33532582.1206490720851--