[Twisted-Python] telnet works, why wont this client/protocol test?

Tristan Seligmann mithrandi at mithrandi.net
Thu Jan 12 14:21:32 EST 2012

On Thu, Jan 12, 2012 at 8:57 PM, Augusto Mecking Caringi
<augustocaringi at gmail.com> wrote:
> Right.
> But there is an interesting fact:
> "nc" and "openssl s_client", two utilities that I use every day to
> connect to diferent types of servers send only LF as default...

"nc" and "openssl s_client" read bytes from stdin and send them on
exactly as-is; it's your terminal that is sending LF. The reason
openssl provides an option to translate LF to CRLF is that this is
often useful when testing line-oriented network protocols
interactively, but this just underscores the point; if you want to
communicate with a network server that expects CRLF, you should send
CRLF from your client, not expect every server out there to accept LF
as an alternative line ending.
mithrandi, i Ainil en-Balandor, a faer Ambar

More information about the Twisted-Python mailing list