commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <>
Subject RE: [HttpClient] httpclient getmethod
Date Sun, 16 Nov 2003 23:40:11 GMT
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.


Adrian Sutton, Software Engineer
Ephox Corporation 

-----Original Message-----
From: csere matyas []
Sent: Saturday, 15 November 2003 2:18 AM
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
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

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message