<div dir="ltr"><div dir="ltr">Am Di., 13. Aug. 2019 um 22:46 Uhr schrieb tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>>:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
It turns out that the browser (safari and chrome) sends a string with CRLF line ends to us. Now, I'm a long way from keeping up to date with web stuff but really?  I thought we got LFs because unixy-things.<br>
[...]<br>
<br>
Two obvious questions come to mind here<br>
a) what on earth? CRLF? Is that normal or is it an artefact of some Seaside setup I can change?<br></blockquote><div><br></div><div>CRLF is common among Internet text protocols, such as HTTP and SMTP.</div><div>(<a href="https://tools.ietf.org/html/rfc2616#section-2.2">https://tools.ietf.org/html/rfc2616#section-2.2</a> <a href="https://tools.ietf.org/html/rfc5321#section-2.3.8">https://tools.ietf.org/html/rfc5321#section-2.3.8</a>)</div><div><br></div><div>For textarea form elements in HTML, see <a href="https://stackoverflow.com/questions/14217101/what-character-represents-a-new-line-in-a-text-area">https://stackoverflow.com/questions/14217101/what-character-represents-a-new-line-in-a-text-area</a> Seems like CRLF is up to standards there as well, at least for the representation on the wire.<br></div><div><br></div><div>In general, while HTTP does not mandate the end of line marker for the body of the message (notwithstanding HTML form specs), it says in RFC2616: "<span style="color:rgb(0,0,0);font-size:13.3333px">When in canonical form, media subtypes of the "text" type use CRLF as </span><span style="color:rgb(0,0,0);font-size:13.3333px">the text line break. HTTP relaxes this requirement and allows the </span><span style="color:rgb(0,0,0);font-size:13.3333px">transport of text media with plain CR or LF alone representing a line </span><span style="color:rgb(0,0,0);font-size:13.3333px">break when it is done consistently for an entire entity-body. HTTP </span><span style="color:rgb(0,0,0);font-size:13.3333px">applications MUST accept CRLF, bare CR, and bare LF as being </span><span style="color:rgb(0,0,0);font-size:13.3333px">representative of a line break in text media received via HTTP."</span></div><div><span style="color:rgb(0,0,0);font-size:13.3333px">(</span><a href="https://tools.ietf.org/html/rfc2616#section-3.7.1">https://tools.ietf.org/html/rfc2616#section-3.7.1</a>)</div></div></div>