Re: Non-blocking file upload

2011-02-16 Thread Oleg Kalnichevski
On Wed, 2011-02-16 at 11:05 +, Frazer Irving wrote: > Hi, > ... > It seems that the call to executeMethod is blocking until the entire > body of the RequestEntity has been written to the server before > processing the response. Yes, this is indeed the case due to the limitations of the bl

Non-blocking file upload

2011-02-16 Thread Frazer Irving
Hi, I have a requirement to upload a file, and to have the transfer of data be interrupted in the event of the server responding with an error. My code looks like: MimetypesFileTypeMap mime = new MimetypesFileTypeMap(); request = new PostMethod(url); Monit