On Mon, 2010-04-26 at 22:03 -0500, hanasaki wrote:
> The issue seems to be that when the servlet grabs Content-Length header, 
> it gets -1 and the folks who wrote the servlet use that for a new 
> byte[Content-Length]. 

Oh well, what shall I say?


>  So with content-length = -1 httpclient will 
> automatically use Chunked coding? 

Yes, it will


>  I manually set it via API anyways. 
> With chunked=true, should the servlet have a content length?

No, it should not

>   How SHOULD 
> the servlet be determining how many bytes to read or when to end reading?
> 

One is expected to keep on reading until the end of data stream (read
operation returns -1).

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to