Open In App

HTTP headers | Accept

The HTTP Accept header is a request type header. The Accept header is used to inform the server by the client that which content type is understandable by the client expressed as MIME-types. By using the Content-negotiation the server selects a proposal of the content type and informs the client of its choice with the Content-type response header. If the Accept header is not present in the request, then the server assumes that the client accepts all types of media.

Syntax:



Accept: <MIME_type>/<MIME_subtype> | <MIME_type>/* | */*

Directives: This header accept below mentioned directives:

Example:



To check this Accept in action go to Inspect Element -> Network check the request header for Accept like below, Accept is highlighted you can see.

Supported Browsers: The browsers are compatible with HTTP Accept header are listed below:

Article Tags :