Accept
RequestActiveThe Accept header tells the server which content types the client can process. The server uses this to select the most appropriate response format from what it supports, returning 406 Not Acceptable if none match.
Accept: <MIME_type>/<MIME_subtype>, <MIME_type>/*, */*;q=<quality>
Description
The Accept request header indicates which content types, expressed as MIME types, the client is able to understand. Using content negotiation, the server selects one of the proposals and informs the client of its choice with the Content-Type response header.
Examples
JSON API
http
Accept: application/jsonHTML or JSON
http
Accept: text/html, application/json;q=0.9, */*;q=0.8