Why does http use CRLF as a line separator?

As I know, use LF since the line separator is quite popular, but I wonder why many text protocols like HTTP, FTP use CRLF as a line separator?

I do not think that these protocols were invented for old typewriters, so is there any historical reason for this? I tried to find it through google and stackoverflow and wikipedia, but I don't get any reasonable information.

thanks

+7
source share
1 answer

CR-LF, as a new line, is an Internet standard that has preceded HTTP too long I believe that it was originally listed as part of TELNET in RFC 158 in 1971. The RFC editor has a page explaining some stories . This convention is used by other Internet protocols such as FTP and SMTP, so for HTTP it is enough to negotiate them with them.

+5
source

All Articles