tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clam715 <clam...@yahoo.com>
Subject Re: Content length when HTTP Transfer-encoding is chunked
Date Tue, 13 Jul 2010 20:49:00 GMT

I have the same problem.  Can anyone tell me how to fix the problem?  I try
to use filter to remove content-length, however it only work for
content-length that is greater than 8k.  for page with less than 8k,
content-length header will always show up.  Thank You


Mahesh Seshan wrote:
> 
> Hello,
> 
> I can obtain the content-length of a HTTP Servlet Request when the
> Content-Length header is added by the client. However, when the
> Transfer-encoding is chunked, how do I programatically obtain the
> content length ?
> 
> The task at hand for me is to prevent a HTTP client from issuing a
> request that has a huge payload that could pose a resource risk on the
> HTTP server.
> 
> Any help or pointers appreciated.
> 
> Thank you,
> 
> -mahesh
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Content-length-when-HTTP-Transfer-encoding-is-chunked-tp22353656p29155519.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message