You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by clam715 <cl...@yahoo.com> on 2010/07/13 23:02:26 UTC

remove "content-length" http header when header "Transfer-Encoding chunked" exist

I am using tomcat 5.5.27.  

All my http response create both http header "content-length" and
"Transfer-Encoding	chunked".
This not valid according to RFC. 
How can I remove the "content-length" from the header of
httpServletResponse? 
Thank You
 


-- 
View this message in context: http://old.nabble.com/remove-%22content-length%22-http-header-when-header-%22Transfer-Encoding%09chunked%22-exist-tp29155633p29155633.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


Re: remove "content-length" http header when header "Transfer-Encoding chunked" exist

Posted by clam715 <cl...@yahoo.com>.
Thank you for your reply.  Please what can I do in my end to fix the problem.


markt-2 wrote:
> 
> On 13/07/2010 22:02, clam715 wrote:
>> 
>> I am using tomcat 5.5.27.  
>> 
>> All my http response create both http header "content-length" and
>> "Transfer-Encoding	chunked".
>> This not valid according to RFC. 
>> How can I remove the "content-length" from the header of
>> httpServletResponse? 
> 
> Fix your broken application? Tomcat is unlikely to be doing that on its
> own.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> 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/remove-%22content-length%22-http-header-when-header-%22Transfer-Encoding%09chunked%22-exist-tp29155633p29156381.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


Re: remove "content-length" http header when header "Transfer-Encoding chunked" exist

Posted by Mark Thomas <ma...@apache.org>.
On 13/07/2010 22:02, clam715 wrote:
> 
> I am using tomcat 5.5.27.  
> 
> All my http response create both http header "content-length" and
> "Transfer-Encoding	chunked".
> This not valid according to RFC. 
> How can I remove the "content-length" from the header of
> httpServletResponse? 

Fix your broken application? Tomcat is unlikely to be doing that on its own.

Mark



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