Thanks a lot - i give it a try.
/Oliver
Hi Oliver
HttpMethod#abort should be what you want
Cheers,
Oleg
-----Original Message-----
From: Oliver Koell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 19:07
To: Commons HttpClient Project
Subject: Re: Interruption connections
Hi Oleg,
thanks for your reply, and all the good work, too..
I'm actually already with the unstable branch. What is the preferred
way to cancel method execution in HttpClient 3.0?
Is this in any way related to which HttpConnectionManager i'm using?
(i'm using the SimpleHttpConnectionManager because i can assure that
there is only one HttpMethod executed at a time, although in different
SwingWorker threads).
Regards, Oliver
Oliver,
Unfortunately there's no (standard and easy) way to interrupt
execution of an HTTP method in HttpClient 2.0. This limitation has
been fixed in the unstable branch (HttpClient 3.0). For the stable
branch (HttpClient 2.0) there's no way around forking the stock
version of HttpClient or (if your application does not use
multithreaded connection manager) implementing your own connection
manager
Sorry
Oleg
-----Original Message-----
From: Oliver Koell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 18:34
To: Commons HttpClient Project
Subject: Interruption connections
Hi all,
i'm building a Swing app using HttpClient and, naturally, my users
want
to be able to cancel slow HTTP requests (as in a Browser).
What would be the best way to accomplish this? Should i just interrupt
the HttpClient thread, or are there other (safer) methods to do this?
Thanks in advance
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]