The HTTP GET message
Consider the figure below, where a client is sending an HTTP GET message to a web server, gaia.cs.umass.edu
Suppose the client-to-server HTTP GET message is the following:
GET /kurose_ross_sandbox/interactive/quotation9.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, text/xml, image/gif, image/png, audio/basic, audio/mp4, video/wmv, video/mp4,
Accept-Language: en-us, en-gb;q=0.2, en;q=0.6, fr, fr-ch, zh, da, ar
If-Modified-Since: Sat, 21 Dec 2024 20:34:43 -0800
User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Question List
1. What is the name of the file that is being retrieved in this GET message?
2. What version of HTTP is the client running?
3. True or False: The client will accept html files
4. True or False: The client will accept jpeg images
5. What is the client's preferred version of English?
6. What is the client's least preferred version of English?
7. True or False: The client will accept the German language
8. True or False: The client already has a cached copy of the file
Solution
1. The name of the file is quotation9.htm.
2. The client is running on HTTP/1.1
3. True. In the 'Accept' field the client includes 'text/html' files.
4. False. The client does NOT include 'image/jpeg' in its 'Accept' field.
5. The client's preferred version of English is American English. Any language without a defined q value has a default value of 1
6. The client's least preferred version of English is British English because it has the lowest q value.
7. False. The client does NOT include German in its 'Accepted-Language' field.
8. True. The client has a cached copy of the file that was updated on: Sat, 21 Dec 2024 20:34:43 -0800
That's incorrect
That's correct
The answer was: quotation9.htm
The answer was: HTTP/1.1
The answer was: True
The answer was: False
The answer was: American English
The answer was: British English
The answer was: False
The answer was: True