H12-891_V1.0 · Question #162
Which of the following descriptions of the HTTP protocol is wrong?
The correct answer is C. The method field in the starting line of the HTTP request message can be "GET", "POST" or. Option C is the incorrect description because it implies HTTP request methods are limited to only "GET", "POST", or perhaps one other - when in fact HTTP defines many valid methods including PUT, DELETE, PATCH, HEAD, OPTIONS, CONNECT, and TRACE. Restricting the method field to…
Question
Which of the following descriptions of the HTTP protocol is wrong?
Options
- AThe format of the version field in the starting line of the HTTP request message is: HTTP/<major
- BHTTP status code is a three-digit decimal code
- CThe method field in the starting line of the HTTP request message can be "GET", "POST" or
- DThe body part of some HTTP request messages can be empty
How the community answered
(18 responses)- A11% (2)
- B6% (1)
- C78% (14)
- D6% (1)
Explanation
Option C is the incorrect description because it implies HTTP request methods are limited to only "GET", "POST", or perhaps one other - when in fact HTTP defines many valid methods including PUT, DELETE, PATCH, HEAD, OPTIONS, CONNECT, and TRACE. Restricting the method field to just two or three options misrepresents the protocol.
The other options are all accurate: A correctly describes the HTTP version format (e.g., HTTP/1.1, HTTP/2.0) using a major/minor number scheme. B is true - all HTTP status codes are exactly three decimal digits (e.g., 200, 404, 500). D is also true - methods like GET and HEAD typically send no request body, making an empty body perfectly valid.
Memory tip: Think of HTTP methods as a full "verb toolkit" - GET and POST are just the two most common; remember the mnemonic "GPPHDOCCT" (Get, Post, Put, Head, Delete, Options, Connect, Trace) or simply recall that REST APIs alone require at least GET, POST, PUT, PATCH, and DELETE. Any answer that caps the method list at two or three is a red flag.
Topics
Community Discussion
No community discussion yet for this question.