Question: Why does the HTTP GET command GET http://www.cs.princeton.edu/index.html HTTP/1.1 contain the name of the server being contacted? Would the server not already know its name?
Why does the HTTP GET command GET http://www.cs.princeton.edu/index.html HTTP/1.1 contain the name of the server being contacted? Would the server not already know its name? Use Telnet, as in Exercise 14, to connect to port 80 of an HTTP server and find out what happens if you leave the host name out.
Step by Step Solution
3.51 Rating (148 Votes )
There are 3 Steps involved in it
The HTTP GET command contains the name of the server being contacted because of a feature known as v... View full answer
Get step-by-step solutions from verified subject matter experts
