HTTP Accept-Language Header
Indicates which natural languages the client prefers. The server uses this for content negotiation to return the appropriate language version.
Purpose
Allows servers to serve localized content based on the user's language preferences.
Accept-Language: en-US Accept-Language: fr, en;q=0.9 Accept-Language: ar;q=1.0, en;q=0.5
Code Examples
See how to use the Accept-Language header in different tools and languages.
Related Headers
Accept
Informs the server about the media types the client can process in the response. The server uses content negotiation to select one of the proposed formats.
Accept-Encoding
Indicates which content encoding (compression algorithm) the client supports. The server may compress the response body using one of these methods.
Content-Type
Indicates the media type (MIME type) of the resource being sent. Tells the client how to interpret the response body.
Vary
Determines how the response should be cached based on request headers. Ensures caches serve the correct version based on varying request criteria.