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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org