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.