nerdexam
F5

303 · Question #233

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…

The correct answer is A. The client request does NOT include a Host header. See the full explanation below for the reasoning.

Question

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?

Options

  • AThe client request does NOT include a Host header.
  • BThe User-Agent header contains an invalid character.
  • CThe web server is NOT expecting a keep-alive connection.
  • DThe web server is configured to accept HTTP 1.0 requests only.

How the community answered

(60 responses)
  • A
    83% (50)
  • B
    10% (6)
  • C
    3% (2)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full 303 Practice