How to send carriage return over telnet?

≯℡__Kan透↙ 提交于 2019-11-29 03:19:57

When you are operating in a Telnet client, sending a newline or carriage return control code to the client, will send it directly to the host.

The easiest way to do what you want would be to copy/paste the HTTP GET request from another text editor, so that the newlines are embedded in the text.

You can set the crlf option in telnet. You can do this by, during your telnet session, typing the escape character (^]), and then "toggle crlf". A perhaps cleaner way is to specify this before making the connection:

$ telnet
telnet> toggle crlf
Will send carriage returns as telnet <CR><LF>.
telnet> open mailhost smtp

Try Ctrl+Shift+Enter I tried on Mac OS Mojave Terminal.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!