🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Accept: application/json
  2. B.Content-Type: application/json
  3. C.Authorization: json
  4. 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 →