I need to send multipart post request from AsyncTask using loopj, so I'm forced to use SyncHttpClient.
Reading the source code comments, I'm learning that a Request Handle returned from the post method of synchronous request cannot be used to cancel the request because it is already complete by the time this returns (which makes sense). Looks like a catch 22 though.
Is there another way to cancel a currently running Synchronous request? Is it possible to use SyncHttpClient.cancelAllRequests(true); from the UI thread? Well, SyncHttpClient.cancelAllRequests(true) from the UI thread does not work. Is it a bug?