RE: remove "content-length" item from the http header of HttpServletResponse

2008-02-28 Thread Hanks Wang (hanwan)
Developers List; Hanks Wang (hanwan) Subject: RE: remove "content-length" item from the http header of HttpServletResponse Create a Filter, map it to the relevant requests, and in your doFilter() method do something like this: chain.doFilter( request, new HttpServletResponseWrapper(htt

RE: remove "content-length" item from the http header of HttpServletResponse

2008-02-27 Thread Leech, Jonathan
rg Subject: remove "content-length" item from the http header of HttpServletResponse Hi all, All http response generated by tomcat owns a http header item "content-length". How can I remove the item from the header of httpServletResponse? The reason is generate chunked

remove "content-length" item from the http header of HttpServletResponse

2008-02-27 Thread Hanks Wang (hanwan)
Hi all, All http response generated by tomcat owns a http header item "content-length". How can I remove the item from the header of httpServletResponse? The reason is generate chunked http response, according the RFC, there should be no content-length item in http header when response is ch