0

Can anyone explain what is the exact difference between -

1. Content-Type: application/json
2. Accept: application/json
Mudit
  • 5
  • 3
  • Take a look at [difference-between-the-accept-and-content-type-http-headers](https://webmasters.stackexchange.com/questions/31212/difference-between-the-accept-and-content-type-http-headers) – B001ᛦ Sep 30 '19 at 09:41

1 Answers1

1

"Content-Type" indicates the format of the message body (either request or response).

"Accept" in a request indicates the preferred format for the response.

Julian Reschke
  • 40,156
  • 8
  • 95
  • 98