HTTP headers | Accept Last Updated : 07 Nov, 2019 Comments Improve Suggest changes Like Article Like Report 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: <MIME_type>/<MIME_subtype>: This directive holds the type/subtype of the web content that the client will received by content-type header which is chosen by the server from Accept header. Basically it holds the single mime type like text/html. <MIME_type>/*: This directive holds the type but can accept any subtyping like image/* means the image can be jpg, png, or can svg everything will be accepted. */* This directive accepts any kind of type/subtype. Example: This example accepts the text type with the subtype of html. Accept: text/html This example accept any image subtype does not bother. Accept: image/* 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: Google Chrome Internet Explorer Firefox Safari Opera Comment More infoAdvertise with us Next Article HTTP headers | Accept S sowmyarajucherukuri Follow Improve Article Tags : Computer Networks HTTP-headers Similar Reads HTTP headers | Accept-CH The HTTP Accept-CH header is a response-type header that indicates the client hints that the server can support and should include in further requests. Syntax: Accept-CH: client hints Note: The client hints can be more than one and are to be separated by commas. Directives: The HTTP Accept-CH header 1 min read HTTP headers | Accept-Patch The Patch is used for making partial changes to an existing resource. The Accept-Patch HTTP header is a response HTTP header that specifies the patch document is supported or not and also the media type that the server is able to understand. The presence of a specific patch document format in this h 1 min read HTTP headers | Accept-Ranges The HTTP Accept-Ranges is the Response type header also the part of the ranges system. This header act as a marker that is used by the server to supports the partial request of the clients. The HTTP Accept-Ranges is useful when the client requests any particular portion of a huge file then this head 2 min read HTTP headers | Expect The HTTP headers Expect request-header field is used to indicate specific behaviors or expectations that the server needs to fulfill in order to respond to the client. Generally, Expect: 100-continue is the only expectation defined for the header field. If the data provided in the header field meets 1 min read HTTP headers | Accept-Charset The HTTP Accept-Charset is a request type header. This header is used to indicate what character set are acceptable for the response from the server. The accept-charset header specifies the character encodings which are accepted by the client and this header also allows a user-agent to specify the c 2 min read HTTP headers | Date Description: HTTP headers are used to pass additional information with HTTP response or HTTP request. Date HTTP header contains the date and time at which the message was generated. It is supported by all the browsers. Syntax: Date: day-name, day month year hour:minute:second GMT Directives: day-nam 2 min read HTTP headers | Expect-CT The HTTP Expect-CT header is a response-type header that prevents the usage of wrongly issued certificates for a site and makes sure that they do not go unnoticed and it also allows sites to decide on reporting or enforcement of Certificate Transparency requirements. Syntax: Expect-CT max-age=<ag 2 min read HTTP headers | Accept-Language This HTTP Accept-Language header tells the server about all the languages that the client can understand. With the help of content negotiation, there will be a set of supported languages in the HTTP Accept-Language proposal then the server selects one of the proposals of those languages and place th 2 min read HTTP headers | Accept-Encoding The HTTP headers Accepts-Encoding is usually a comparison algorithm of request header. All the HTTP client used to tell the server which encoding or encodings it supports. Then the server will respond in any of the supporting encoding formats. The server selects any one of the proposals, uses it and 2 min read HTTP headers | Digest The Digest HTTP header is a response HTTP header that provides the requested resource with a small value generated by a hash function from a whole message. The Digest HTTP header is a response header that provides a digest of the requested resource. The entire representation is used to calculate the 1 min read Like