Thanks, Ronald! Yes, I was basically asking for the functionality like abort(). I do not mind writing an extra "get.getResponseBodyAsStream().skip(Long.MAX_VALUE);" even if get.releaseConnection() did not do it for me. I was concerned with downloading tons of useless data from the network.
Thanks, - Igor -----Original Message----- From: Roland Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 1:34 AM To: HttpClient User Discussion Subject: Re: Managing connections Hello Igor, > I am reading the tutorial, and it claims that I always must fully read > the body of the response (of the GET method, for example) before > releasing the connection. This is not correct. You do not need to read the full body before calling releaseConnection, because releaseConnection will read the rest of it. If you are receiving short pages, just release the connection and you will still have connection keep-alive. Only if you are receiving huge pages which you don't want to be consumed by releaseConnection, you have to call abort(). cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
