commons-user mailing list archives

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


Mime
View raw message