You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Adrian Sutton <Ad...@Ephox.com> on 2003/11/17 00:40:11 UTC

RE: [HttpClient] httpclient getmethod

Howdy,
The ability to abort a connection is not currently present in HttpClient
without a bit of messing around.  Probably the easiest way to do it, is
override the GetMethod so that you can get a hold of the HttpConnection
instance, then just close it when you want to abort.

We are looking to add this feature for the 2.1 release though it won't make
it into the 2.0 release.

I'd suggest you search the archives of the httpclient-dev list as this has
recently been discussed there.  That's also the best place for all
HttpClient questions whether they are dev related or user related.

Finally, including [HttpClient] in the subject of your email on the
commons-user list makes it more obvious to HttpClient developers - there's
no need for that over on the httpclient-dev list though.

Regards,

Adrian Sutton, Software Engineer
Ephox Corporation
www.ephox.com 

-----Original Message-----
From: csere matyas [mailto:warder@eduweb.hu]
Sent: Saturday, 15 November 2003 2:18 AM
To: commons-user@jakarta.apache.org
Subject: httpclient getmethod


hi everyone!


im writing a application with httpclient, which has to download files.

im using the multithread connection manager with getmethods to download
files.
my problem is: when i cancel a file download (eg, stop reading from the
input stream of the request) it doesnt seem to stop. and releaseConnection()
takes quite a while to execute.
i would like to stop the download immediately after stopping reading from
the request input, but its just not working.

thanks in advance
wd







---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org