I'm very confused. I didn't get the right forum to ask.
My first question is what is TELNET used for? As far as I know telnet is a program used to login to a remote system.
For that we need a TELNET server running on the remote machine (by default it runs on port 23). Am I wrong?
Actually I want to get the feel of HTTP/1.1 by myself (by hand instead of browser) and see. But I didn't understand where to type those HTTP methods & headers. One thing which is pretty clear is write a socket program which connects to port 80. after the connection is established issue http commands along with headers.
But I've seen in some books/tutorials that they use telnet to do that.
example
I'm surprised!!!telnet http://www.google.com 80
How can one use a TELNET for communication. Because the purpose of telnet is different.
and moreover its a webserver that runs on port 80 not the telnet server. Then is it possible to use telnet?
OK. Some how it connected to http://www.google.com on port 80. Now then why should I include HOST:www.google.com header in the http headers? because, I've connected to http://www.google.com only.
Somewhere I also read that, you should issue the commands very fast.(may be in 2-3 seconds). Why so?
Why should I issue commands so fast?