Re: [Hampshire] Possibly daft Perl/DOS question

Top Page

Reply to this message
Author: Vic
Date:  
To: hampshire
Subject: Re: [Hampshire] Possibly daft Perl/DOS question
> I Read In A Book [1] :
> "The line termination for network communication should be \n\n.


RFC821 defines its commands as being terminated by CRLF, with CRLF being
defined as a CR followed by an LF (i.e. no interpretation possible - the
ASCII codes are mentioned).

RFC2821 goes as far as to say :

Lines consist of zero or more data
characters terminated by the sequence ASCII character "CR" (hex value
0D) followed immediately by ASCII character "LF" (hex value 0A).
This termination sequence is denoted as <CRLF> in this document.
Conforming implementations MUST NOT recognize or generate any other
character or character sequence as a line terminator.

So strictly speaking, Microsoft has got it right, and the rest of the
multiverse is wrong :-(

Vic.