Bird
0
0

Which HTTP header is used to send credentials in Basic Authentication?

easy📝 Conceptual Q2 of 15
Rest API - Authentication and Authorization
Which HTTP header is used to send credentials in Basic Authentication?
AContent-Type
BAccept
CAuthorization
DUser-Agent
Step-by-Step Solution
Solution:
  1. Step 1: Identify the header for credentials

    Basic Authentication sends credentials in the 'Authorization' header.
  2. Step 2: Eliminate unrelated headers

    'Content-Type' defines data format, 'Accept' defines response format, 'User-Agent' identifies client software, none carry credentials.
  3. Final Answer:

    Authorization -> Option C
  4. Quick Check:

    Credentials header = Authorization [OK]
Quick Trick: Credentials go in Authorization header, not Content-Type [OK]
Common Mistakes:
  • Using Content-Type to send credentials
  • Confusing Accept header with Authorization
  • Sending credentials in User-Agent header

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes