QuestenaPractice that shows what to review next
Question 27

A request omits Accept-Encoding entirely. Another sends Accept-Encoding with an empty field value. How do the two differ?

  1. Omitting it means identity only, while an empty value means any coding is acceptable
  2. They are equivalent; both mean identity only
  3. Omitting it means any content coding is acceptable, while an empty value means no content coding is wantedCorrect answer
  4. An empty field value is invalid and must be rejected with 400 (Bad Request)

Explanation

Absence of the field signals no preference at all, so any coding is acceptable, whereas an explicitly empty value is a positive statement that the user agent wants no content coding in the response. The two are opposites, which is easy to invert in an implementation.

Continue with this test

Start practice
Question 27: A request omits Accept-Encoding entirely. Another sends… · HTTP Semantics · Questena