← Quiz: HTTP Methods, Status Codes and Headers: all 10 questions
Quiz: HTTP Methods, Status Codes and Headers · Question 8 of 10
Which header tells the server the request body is JSON?
Which header tells the server the request body is JSON?
- A.Accept: application/json
- B.Content-Type: application/json
- C.Authorization: json
- D.Cache-Control: json
Answer & explanation
Correct answer: Content-Type: application/json
Content-Type describes the body being sent; Accept says what you want back.
Can you get the rest right without peeking?
Take the timed Quiz: HTTP Methods, Status Codes and Headers quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →