301B practice question 28 of 30

Which three HTTP headers allow an application server to determine the client's language compatibility, browser, operating system type, and compression compatibility? (Choose three.)

Full set: 210 questions
Answer options
A: Accept
B: Accept-Encoding Correct answer
C: Accept-Language Correct answer
D: Host
E: User-Agent Correct answer
Correct Answer:
B. Accept-Encoding; C. Accept-Language; E. User-Agent
Explanation

Accept-Encoding advertises the compression schemes (e.g., gzip) the client supports, Accept-Language lists the user’s preferred natural languages, and User-Agent discloses the browser and operating-system details. These three headers together allow the server to decide language, compression compatibility, and client software/OS characteristics.

Why Incorrect

A. Accept only lists acceptable MIME media types, not language or compression.
D. Host reveals the virtual host name requested, nothing about language, OS, or compression.

References

1) IETF RFC 7231, sec. 5.3.4 Accept-Encoding; sec. 5.3.5 Accept-Language.

2) IETF RFC 7231, sec. 5.5.3 User-Agent.

3) IETF RFC 7231, sec. 5.3.2 Accept (media types).

4) IETF RFC 7230, sec. 5.4 Host header.

Scroll to Top