On Fri, 2006-05-26 at 12:29 +0200, Reto Mayer wrote:
> Hi everybody,
> 
> I am using HTTPClient to POST messages to a web service. The server 
> processing can potentially take very long and I would like to have the 
> option of interrupting the call on the client side.
> 
> My question is: How can I achieve this with HTTPClient? I am using a 
> MultiThreadedHttpConnectionManager and create a HTTPClient with that 
> manager which I then use in a separate thread. However, 
> PostMethod.executeMethod does not seem to be aware of the possibility of 
> interruptions (i.e. it does not throw a InterrupedException and also 
> doesn't seem to be aware of thread interruptions).
> 
> My question is, how can I (prematurely) stop executeMethod from the 
> outside? Or am I attacking the problem from the wrong side?
> 
> Thanks a lot,
> 
> Reto

HttpMethod#abort is your friend

Oleg


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


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

Reply via email to