My home router provides Web server here: 10.1.1.1:80
I can ping and connect to it fine with a web browser. For whatever reason, I want to establish a connection to its web server via telnet too.
I have installed telnet on windows 7. I run cmd as admin. I run telnet, and set localecho. I then open 10.1.1.1 80
The result always leads to the connection not occurring:
Welcome to Microsoft Telnet Client Escape Character is 'CTRL+]' Microsoft Telnet> open 10.1.1.1 80 Connecting To 10.1.1.1... Connection to host lost.
I have used wireshark to confirm that an exchange of packets between the telnet client and the webserver was in fact occurring to rule out any firewall issues (there was no payload, but the server was sending back ACKs). Am I missing something? Why can't I submit HTTP commands?
I want to know how to use telnet to send and receive the http requests. For reasons outside the scope, I have to use telnet as the tool.
EDIT: I think telnet is working ok but the server is just disconnecting too quickly for me to submit any HTTP commands. I tried with a number of servers and noticed that, in most cases, there is no feasible way to submit a command (i.e. the connection is lost before a single key press can be made). So I suppose what I should have asked (updated the title accordingly) is:
(a) why is it lost so quickly?
(b) what can be done to either not lose the connection or submit a command before the connection is lost?