Bird
0
0

Why does the HEAD method not return a message body even though it returns the same headers as GET?

hard📝 Conceptual Q10 of 15
Rest API - HTTP Methods
Why does the HEAD method not return a message body even though it returns the same headers as GET?
ABecause the server does not support HEAD requests
BTo save bandwidth by avoiding sending the resource content
CBecause HEAD is only used for authentication
DTo force the client to send a GET request afterwards
Step-by-Step Solution
Solution:
  1. Step 1: Understand the design of HEAD method

    HEAD is designed to retrieve metadata (headers) without the resource body to save bandwidth and improve performance.
  2. Step 2: Eliminate incorrect reasons

    HEAD is supported by servers, not only for authentication, and does not force GET requests.
  3. Final Answer:

    To save bandwidth by avoiding sending the resource content -> Option B
  4. Quick Check:

    HEAD no body = Bandwidth saving design [OK]
Quick Trick: HEAD omits body to save bandwidth [OK]
Common Mistakes:
  • Thinking HEAD is unsupported
  • Confusing HEAD with authentication
  • Assuming HEAD forces GET requests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes