Page 1 of 1

CONFUSED with HTTP/1.1 :?

Posted: Sat Apr 26, 2008 12:17 am
by claws
Hi forum,

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!!! :o
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?

Re: CONFUSED with HTTP/1.1 :?

Posted: Sat Apr 26, 2008 2:17 am
by Christopher
claws wrote:
I'm surprised!!! :o
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?
You are confusing the telnet protocol with the telnet program. The telnet is a specific protocol -- usually over port 23. The telnet program can do interactive TCP connections on many ports/protocols -- especially the text based protocols like HTTP.