Re: Content length when HTTP Transfer-encoding is chunked

2010-07-13 Thread clam715
subscribe, 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-tp22353656p2915

Re: Content length when HTTP Transfer-encoding is chunked

2009-03-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mahesh, On 3/5/2009 10:16 AM, Mahesh Seshan wrote: > 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. Given Rainer's comments, it seems like a r

Re: Content length when HTTP Transfer-encoding is chunked

2009-03-05 Thread Rainer Jung
On 05.03.2009 20:08, Mahesh Seshan wrote: Rainer, Thank you very much for the prompt response. To be more specific, Apache CXF is the consumer of HTTP request. Are you indicating that Apache CXF is the one reading from Socket input stream ? And that Tomcat HTTP Connector simply hands over the I

Re: Content length when HTTP Transfer-encoding is chunked

2009-03-05 Thread Mahesh Seshan
Rainer, Thank you very much for the prompt response. To be more specific, Apache CXF is the consumer of HTTP request. Are you indicating that Apache CXF is the one reading from Socket input stream ? And that Tomcat HTTP Connector simply hands over the Inputstream to CXF to consume the chunked con

Re: Content length when HTTP Transfer-encoding is chunked

2009-03-05 Thread Rainer Jung
On 05.03.2009 16:16, 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 ? You can't without consuming the

Content length when HTTP Transfer-encoding is chunked

2009-03-05 Thread Mahesh Seshan
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 t