What’s the difference between API Request Header – Content vs Accept?

      

  

Difference between API Request Header – Content vs Accept?

    Accept and Content-type are both headers sent from a Client (say a browser) to a server.

    • Accept header is a way for a client to specify the media type of the response content it is expecting. I.e., expected response media type.

    • Content-type is a way to specify the media type of request being sent from the client to the server. I.e., request media type.

Post a Comment