CONFUSED with HTTP/1.1 :?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
claws
Forum Commoner
Posts: 73
Joined: Tue Jun 19, 2007 10:54 am

CONFUSED with HTTP/1.1 :?

Post 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?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: CONFUSED with HTTP/1.1 :?

Post 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.
(#10850)
Post Reply