Bird
0
0

Which HTTP header is commonly used to maintain statelessness by sending authentication info with each request?

easy📝 Syntax Q3 of 15
Rest API - REST API Fundamentals
Which HTTP header is commonly used to maintain statelessness by sending authentication info with each request?
AReferer
BCookie
CSet-Cookie
DAuthorization
Step-by-Step Solution
Solution:
  1. Step 1: Identify headers related to authentication

    Authorization header carries credentials in each request, supporting statelessness.
  2. Step 2: Differentiate from cookie headers

    Cookie and Set-Cookie relate to sessions, which can break statelessness.
  3. Final Answer:

    Authorization -> Option D
  4. Quick Check:

    Authorization header supports stateless auth [OK]
Quick Trick: Use Authorization header for stateless authentication [OK]
Common Mistakes:
  • Confusing Cookie with Authorization
  • Thinking Set-Cookie is sent by client
  • Using Referer for authentication

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes