Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:

>On Tue, 29 Jan 2008 16:23:28 -0800 (PST), "[EMAIL PROTECTED]"
><[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>> Telnet(192.168.2.75,5000): send '\n\n'
>
>       Should that be "\r\n" (or, if two lines is intended, "\r\n\r\n")

I don't think so.  The RFC quote you provided talks about the physical
manifestation of CR and LF on a terminal, and says that a Telnet server
must be prepared to handle various combinations, but if you think about a
real Telnet session, the user is going to press CR when its through with a
line.  Thus, I would think he needs either \r\r or \n\n.
-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to