Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 16396 invoked from network); 17 Sep 2002 08:12:06 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Sep 2002 08:12:06 -0000 Received: (qmail 7314 invoked by uid 97); 17 Sep 2002 08:12:53 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 7292 invoked by uid 97); 17 Sep 2002 08:12:52 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 7278 invoked by uid 98); 17 Sep 2002 08:12:52 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3D86E459.6080607@nose.ch> Date: Tue, 17 Sep 2002 10:14:17 +0200 From: =?ISO-8859-1?Q?Ortwin_Gl=FCck?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: de-ch, en-us MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [httpclient] max response size References: <200209152007.QAA05768@www23.ureach.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Your app may want to get the data as an InputStream. Then you can decide yourself how many bytes you want to read. There might be some issues with closing the connection before the end of the stream has been reached. However this is another candidate for a configuration property. More about Http configuration will follow... otisg wrote: > Is it possible to specify the max number of > bytes to retrieve from a response? Consider > the case where HttpClient can fall into a > 'crawler trap', or simply encounter a > response with no end. -- To unsubscribe, e-mail: For additional commands, e-mail: