DevOpsTheHardWay

Networking - HTTP

Please answer the quiz and click the "Test" button at the bottom right.


Given the following request message for some HTML page, answer the questions below.

GET ../../6.031/www/fa17/classes/24-sockets-networking/ HTTP/1.1
Host: web.mit.edu
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Keep-Alive: 300
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document

Question 1

What is wrong in the request?

Question 2

For how long the client persists the TCP connection over which requests and responses will be transferred?

Question 3

The server uses HTTP/2. Choose the correct statement:

Question 4

Assume the above request was responded with an HTML page consisting of some text and three images.

Consider the following statement:

For this page, the client will send one request message and receive four response messages.

Question 5

Assume the server response status code is 408. Choose the most likely root cause for this response.

Question 6

Assume the server response status code is 500. How can you advise the client?

Question 7

Assume the RES bash variable contains the response status of some request. Which condition will catch all possible failures (both client and server)?

license