Quote Originally Posted by giusepped View Post
Web server can use different scheme for separate header lines.
You can have
'\n' or '\r\n' or '\n\r'.
Believe me beacause I tested a lot of embedded web server (not the bigger ones).
You should report any embedded web server that uses something other "\r\n" to the creator of the server software. The HTTP RFC is clear:
"HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all protocol elements except the entity-body"
http://www.w3.org/Protocols/rfc2616/...c2.html#sec2.2 (Was the same in HTTP/1).

The RFC advises tolerance (http://www.w3.org/Protocols/rfc2616/...9.html#sec19.3) but even it does not mention LFCR as a possibility. You still have to accept the rubbish data from the server, but if you don't tell them they cannot fix it.