Hi Roland,

Thanks for your response.

Roland Weber wrote:

Hi Roger,

I would like to make a POST, and then start reading the response (in a
separate thread) before the entire request has been sent,

That is not supported by the current API, and probably won't be supported
by the future one either. The input stream for the response body can not
be created until the transfer-encoding header of the response has been
evaluated
What if the server will always write it's response using chunked transfer-encoding .. ?

Well, that's probably a bit of a 'what if' ...

Roger

What you can do is wrap your own input stream around the method and block
all calls to read() until the thread that is executing the method has the
response. Then that thread can signal to your wrapper stream that the
response is available.

hope that helps,
 Roland

---------------------------------------------------------------------
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