Where in an HTTP message is the Content-Type specified?
Choose an answer
Tap an option to check your answer.
Correct answer: header.
Why this is the answer
The Content-Type is specified in the HTTP header. The Content-Type header field indicates the media type of the resource sent to the recipient, such as text/html, application/json, or image/jpeg. This allows the client or server to correctly interpret the data in the message body. The HTTP method (like GET, POST) defines the action to be performed. The body contains the actual data being transferred. The URI (Uniform Resource Identifier) specifies the resource's location.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed