tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Fretwell <>
Subject Re: CRLF in HTTP headers
Date Thu, 17 Feb 2011 15:51:43 GMT
Thank you for your feedback, I have just confirmed CRLF is actually 
present by using
When I grab the headers myself in a hex dump, only LF is present.  
Something must be stripping the CR out.

Thank you for the confirmation.

Kind regards,

On 17/02/11 15:08, Mark Thomas wrote:
> On 17/02/2011 14:38, Adrian Fretwell wrote:
>> Tomcat 6.0.32
>> Hello,
>> I am struggling a little with what may be a simple issue:
>> When I send a request to my installation of Tomcat (including any of the
>> example servlets) the HTTP response headers returned are separated by
>> only a line feed (0A).
>> I have a Hermes2 application running under tomcat as a B2B Gateway.
>> When trying to connect to us, our partners system complains that "*HTTP
>> response line not terminated by CRLF*. "  (0D0A) and throws an exception.
>> Can anyone tell me how (or the correct way) to configure Tomcat to
>> ensure it sends CRLF and not just LF?
> Tomcat always (since it is required by the HTTP spec) sends header lines
> terminated with CRLF.
> Mark
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message