tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David kerber <dcker...@verizon.net>
Subject Re: Tomcat strips CRLFs from the generated page
Date Tue, 14 Jan 2014 13:12:59 GMT
On 1/13/2014 10:28 PM, Asok Chattopadhyay wrote:
> As I said before, I have no control over the input text. In the test
> servlet I am simply reading text from a file and sending it out to the
> browser. No other processing has been done to the text by the servlet. The
> browser, however, receives a page with CRLF stripped starting from a
> certain point in the text.
> If I View source in the browser, I can see that happening.
>
> This is consistent over most operating systems (Windows and Linux) and most
> browsers (IE, Firefox and Chrome) and the stripping happens exactly at the
> same point onward, in all combinations of OS and browser.
>
> My question is: who is stripping the CRLF from the text? Is it Tomcat or
> the browser? Is Tomcat doing any validation of the text before sending it
> out to the client?

As others have said, Tomcat is just sending what is in that original 
file and there are probably no CRLF characters there in the first place.



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


Mime
View raw message