Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Insert carriage return, line feed into Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Insert carriage return, line feed into Terminal
Authored by: tim1724 on Jan 21, '04 03:43:27PM

The HTTP specification requires the CR/LF combo at the end of each line. Most web servers will allow just LF for compatibility reasons, but some won't. I've seen some which allow just LF if using HTTP/1.0, but which require CR/LF when using HTTP/1.1

Although you might be able to get away with just a linefeed on many servers, the author of this article is correct in saying that HTTP requires the carriage return.

---
Tim Buchheim



[ Reply to This | # ]
Insert carriage return, line feed into Terminal
Authored by: LC on Jan 21, '04 05:12:01PM

Yes of course; sorry, I'd forgotten about the requirement for CRLF in HTTP's control structures. Duh!
(We get to normalize line endings in XML, yay;)



[ Reply to This | # ]