Questenaتمرینی که نشان می‌دهد بعد چه چیزی را مرور کنید
سؤال 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 wantedپاسخ درست
  4. An empty field value is invalid and must be rejected with 400 (Bad Request)

توضیح

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.

ادامهٔ این آزمون

شروع تمرین
سؤال 27: A request omits Accept-Encoding entirely. Another sends… · HTTP Semantics · Questena