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