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]


***************************************************************************************************
The information in this email is confidential and may be legally privileged.  Access 
to this email by anyone other than the intended addressee is unauthorized.  If you are 
not the intended recipient of this message, any review, disclosure, copying, 
distribution, retention, or any action taken or omitted to be taken in reliance on it 
is prohibited and may be unlawful.  If you are not the intended recipient, please 
reply to or forward a copy of this message to the sender and delete the message, any 
attachments, and any copies thereof from your system.
***************************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to