F
F
freecarsar freecarsar2017-09-24 13:20:25
System administration
freecarsar freecarsar, 2017-09-24 13:20:25

How to properly connect to a web server through the telnet utility?

The goal is to call the web service and get a response. For starters, at least get connected.
Sending a "telnet bbc.com 80" request via the telnet utility (Windows 8) gives the following response: "Invalid command. For help, type "?" or "help".
Sending a "open bbc.com 80" request gives the following response : "Press any key" After pressing any key, the response "Connection to host lost" is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2017-09-24
@freecarsar

what do you want to get from http via telnet? For any kind of debugging, this is a very inconvenient tool. the only thing for which I, for example, used it is to check the health of the TCP protocol through a bunch of gateways. (when there is a ping, but there is no connection)
telnet bbc.com 80 --- must be entered in the OS command line, and not inside the telnet utility itself,
then when the connection is established, you need to write a chenit like "GET /" and press enter , no letters will be visible because this is not a terminal, but you should see some kind of response from http

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question