如何通过telnet发送回车? [英] How to send carriage return over telnet?
问题描述
我使用的是Ubuntu的telnet客户端。
我试图通过telnet连接发送2行。
例如:
> telnet en.wikipedia.org 80
GET / wiki / Main_Page http / 1.1< CR> // line 1
Host:en.wikipedia.org< CR> // line 2
< CR>
其中CR表示回车。
问题是在键入第1行后,按CR,那行将通过telnet连接发送。我不能立即发送第2行。
有人可以帮忙吗?
当您在Telnet客户端中操作时,向客户端发送换行或回车控制代码,到主机。
最简单的方法是从另一个文本编辑器复制/粘贴HTTP GET请求,以便将换行符嵌入到文本中。 p>
I am using Ubuntu telnet client. I am trying to send 2 lines over the telnet connection that I have made.
For example:
> telnet en.wikipedia.org 80
GET /wiki/Main_Page http/1.1 <CR> // line 1
Host: en.wikipedia.org <CR> // line 2
<CR>
where CR stands for carriage return. The problem is after typing line 1, press CR , that line will be sent over the telnet connection. I can not be able to send line 2 immediately after that.
Can somebody help?
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.
这篇关于如何通过telnet发送回车?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!