tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Jackson <>
Subject Re: Content length
Date Fri, 24 Oct 2003 22:07:35 GMT
Can the client handle chunked encoding?  Then you don't need to set
content-length at all.

Jeff Jackson

On Fri, 24 Oct 2003, William Bondy wrote:

> I have a client browser that acts a bit in a non-standard fashion, for http
> responses with content-length set (keep-alive) it expects the content-length
> worth of data PLUS an extra \r\n that is not counted in the content length
> header sent.
> When I set the HttpServletResponse contentLength header to value X and then
> write X+2 bytes to the stream, only X bytes get written. I assume the the
> underlying control is only sending what the header is set to. Is there
> anyway to get around this, ie. set the content length header to X and X+2
> bytes?
>   Thanks!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message