exam questions

Exam 301b All Questions

View all questions & answers for the 301b exam

Exam 301b topic 1 question 85 discussion

Actual exam question from F5's 301b
Question #: 85
Topic #: 1
[All 301b Questions]

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?

  • A. The client request does NOT include a Host header.
  • B. The User-Agent header contains an invalid character.
  • C. The web server is NOT expecting a keep-alive connection.
  • D. The web server is configured to accept HTTP 1.0 requests only.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GVKD
5 months ago
A - Correct The Host header is mandatory in HTTP/1.1 requests and specifies the intended server and optional port number. Its absence leaves the server unsure of which resource to serve and triggers the error.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago