F5 BIG-IP LTM Specialist: Maintain and Troubleshoot — Question 102

A web developer has created a custom HTTP call to a backend application. The HTTP headers being sent by the HTTP call are:

GET / HTTP/1.1 -
User-Agent: MyCustomApp (v1.0)

Accept: text/html -

Cache-Control: no-cache -

Connection: keep-alive -

CookiE. somecookie=1 -
The backend server is responding with the following:

HTTP/1.1 400 Bad Request -
DatE. Wed, 20 Jul 2012 17:22:41 GMT

Connection: close -
Why is the HTTP web server responding with a HTTP 400 Bad Request?

Answer options

Correct answer: A

Explanation

The correct answer is A because the HTTP/1.1 specification requires a Host header to be included in requests. Options B, C, and D are incorrect as the User-Agent header is valid, the keep-alive connection is acceptable, and the server can handle HTTP/1.1 requests.