Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 29413 invoked from network); 14 Nov 2003 14:23:22 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 14 Nov 2003 14:23:22 -0000 Received: (qmail 24574 invoked by uid 500); 14 Nov 2003 14:23:17 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 24552 invoked by uid 500); 14 Nov 2003 14:23:17 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 24536 invoked from network); 14 Nov 2003 14:23:17 -0000 Received: from unknown (HELO outhub3.tibco.com) (63.100.100.166) by daedalus.apache.org with SMTP; 14 Nov 2003 14:23:17 -0000 Received: from outhub1.tibco.com (outhub1.tibco.com [63.100.100.155]) by outhub3.tibco.com (8.12.9/8.12.9) with SMTP id hAEENIV4007734 for ; Fri, 14 Nov 2003 06:23:18 -0800 (PST) Received: from nodnsquery(10.106.128.33) by outhub1.tibco.com via csmap id 6d7efce6_16ae_11d8_9059_00304811db0b_30207; Fri, 14 Nov 2003 06:25:42 -0800 (PST) Received: from nsmail1.tibco.com (nsmail1.tibco.com [10.106.128.41]) by na-h-inhub1.tibco.com (8.12.10/8.12.10) with ESMTP id hAEENIeI007798 for ; Fri, 14 Nov 2003 06:23:18 -0800 (PST) Received: from tibco.com (remote-10.98.32.28.tibco.com [10.98.32.28]) by mail1.tibco.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HOC000DQIMSS9@mail1.tibco.com> for commons-httpclient-dev@jakarta.apache.org; Fri, 14 Nov 2003 06:23:18 -0800 (PST) Date: Fri, 14 Nov 2003 09:23:16 -0500 From: Eric Johnson Subject: Re: HttpMethodBase.releaseConnection() finished download In-reply-to: <3FB42E0D.1060207@upb.de> To: Commons HttpClient Project Message-id: <3FB4E554.8000209@tibco.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031016 References: <3FB42E0D.1060207@upb.de> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sven, I've not tried this, but if you send a "Connection: close" header on the request, the server should echo that on the response. If that header is on the response from the server, the the "releaseConnection()" function will (or at least it should) immediately close the connection, rather than consuming the remainder of the body of the response. Hope that helps. -Eric. Sven Ko"hler wrote: > Hi, > > it seems that releaseConnection finishes the http-download until it is > complete. I don't want that. I'm looking for a way to close the > HttpConnection if the download wasn't completed yet. > I'm aware that one cannot "abort" a Http-Transfer without closing the > connection and therfor loosing it for keep-alive etc. > > There doens't seem to be a way of closing the HttpConnection by using > the HttpMethodBase-Object. What should i try next? > > Thx > Sven > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-httpclient-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-httpclient-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org