hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@apache.org>
Subject Re: Content-Length with streaming content
Date Fri, 29 Apr 2011 03:29:25 GMT
On 04/29/2011 06:38 AM, LongkerDandy wrote:
> Hi
> I have a http server send streaming content to clients.
> I don't know the size of the content because it keep increasing,  like a
> file being written by another thread or streaming content from web.
> The server supposes to keep sending until the file in finished or web
> content reach ends.
> I wrote a customer HttpEnity, but I don't know how should I return
> Content-Length header.
> Should I return a fake number or omit this header?
You should return -1 (See 

Also refer to 
for details on streaming entities

Hope this helps

Asankha C. Perera
AdroitLogic, http://adroitlogic.org


To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message