Which HTTP header is used by the server to specify the format of the response body, for example 'text/html' or 'application/json'?
- A.Accept
- B.Content-Type
- C.Content-Length
- D.Transfer-Encoding
Why B is correct
Content-Type tells the recipient the media type of the body. Accept is the client's preferences for the response format. Content-Length gives the body size in bytes, and Transfer-Encoding describes the encoding of the payload.
Know someone studying for Web App Fundamentals? Send them this one.