ACtE08 · Chapter 8Programming & Applications🏛️ Past Licensure QuestionID: 4a26c445
Which HTTP request method requests that the server return the exact headers of a GET request, but omits the response message body entirely?
Which HTTP request method requests that the server return the exact headers of a GET request, but omits the response message body entirely?
Multiple Choice Options
- A
GET
- B✓ Correct Option
HEAD
- C
POST
- D
PUT
Detailed Technical Solution & Explanation
The HTTP HEAD method is identical to GET except that the server must not return a message-body in the response. It is used to obtain metadata headers (e.g., content-length, last-modified) to test link validity or check cache validity without transferring network payloads.
Option Analysis:
•
Option A (GET): Returns headers and the full response body.
•
Option B (HEAD): Correct. Requests only HTTP headers, omitting the message body.
•
Option C (POST): Submits data to be processed by the server.
•
Option D (PUT): Uploads or replaces a resource representation.
Reference: Mock Test 04NEC Licensure Syllabus