Sec-CH-UA-Platform-Version HTTP Header: Syntax, Directive, Examples

The Sec-CH-UA-Platform-Version HTTP Header is a header in the Sec-CH-UA-Client-Hint request that tells the client what operating system version the client is running. There is only one value for using the Sec-CH-UA-Platform-Version HTTP Header. The value using the Sec-CH-UA-Platform-Version HTTP Header is the version. The version string usually contains the operating system version in the form of a string, with dot-separated major, minor, and patch version numbers in the order they were added. An example of the Sec-CH-UA-Platform-Version HTTP Header is written below. 

GET /GET /my/page HTTP/1.1
Host: example.site
Sec-CH-UA: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Platform-Version: "10.0.0"

The Sec-CH-UA-Platform-Version HTTP Header Request Header can be seen above. In this article, the Sec-CH-UA-Platform-Version HTTP Header Syntax, Directives, and Uses example will be processed. 

What is Sec-CH-UA-Platform Version HTTP Header?

The Sec-CH-UA-Platform-Version user agent client hint request header specifies the user agent’s operating system version.

What is the Syntax of the Sec-CH-UA-Platform Version HTTP Header?

Sec-CH-UA-Platform-Version HTTP Header uses only one value. The syntax for using the Sec-CH-UA-Platform-Version HTTP Header is written below.

Sec-CH-UA-Platform-Version: <version>

What is the Directive of Sec-CH-UA-Platform HTTP Header?

The Sec-CH-UA-Platform-Version HTTP Header can only contain one directive. The version string is often a string containing the operating system’s major, minor, and patch version numbers separated by commas. For instance, “11.0.0”. The version string on Linux is always empty. On Linux, the version string is always null. An example directive for using the Sec-CH-UA-Platform-Version HTTP Header is given below. 

GET /GET /my/page HTTP/1.1
Host: example.site
Sec-CH-UA: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Platform-Version: "10.0.0"

How to use Sec-CH-UA-Platform Version HTTP Header?

When a client sends a request to the Sec-CH-AU-Platform-Version HTTP Header, the server sends back a header that includes the client’s operating system version.

Examples of Sec-CH-UA-Platform Version HTTP Header Use

To request the Sec-CH-UA-Platform Version header, for example, the server includes the Accept-CH in any response to a request from the client, using the name of the desired header as a token in the response.

HTTP/1.1 200 OK
Accept-CH: Sec-CH-UA-Platform-Version

For example, the client may choose to supply the hint and then include the Sec-CH-UA-Platform-Version header in subsequent requests to indicate which platform is being used. Consider the following request headers that might be submitted by a browser operating on Windows 10.

GET /GET /my/page HTTP/1.1
Host: example.site
Sec-CH-UA: " Not A;Brand";v="99", "Chromium";v="96", "Google Chrome";v="96"
Sec-CH-UA-Mobile: ?0
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Platform-Version: "10.0.0"

What are the Specification Documents for Sec-CH-UA-Platform Version HTTP Header?

There is only one specification document for the Sec-C-UA-Platform HTTP Header which is the User-Agent Client Hints. The User-Agent Client Hints article 3.8. mentions the Sec-CH-UA-Platform-Version HTTP Header definition and uses. Additionally, this article discusses the Sec-CH-UA-Platform-Version HTTP Header’s values and examples.

What is the type of Sec-CH-UA-Platform Version?

The Sec-CH-UA-Platform-Version-HTTP Header is a Request Header. This request header is included in the Sec-CH-UA-Platform-Version user agent client hint request header, contains the version of the operating system on which the user agent is currently executing.

What are the similar HTTP Headers to the Sec-CH-UA-Platform Version?

The similar HTTP Headers to the Sec-CH-UA-Platform Version HTTP Header are listed below.

  • HTTP Client Hints: Based on the client’s input, HTTP Client hints can select which resources to transmit. Similar to the Sec-CH-UA-Platform-Version HTTP Header that specifies the user agent’s operating system version.
  • User-Agent Client Hints API: In addition to exposing browser and platform information via User-Agent response and request headers, User-Agent Client Hints provides a JavaScript API. Similar to the Sec-CH-UA-Platform-Version HTTP Header that specifies the user agent’s operating system version.
  • Accept-CH HTTP Header: Accept-CH tells a server which client suggestions to include in the following requests, such as Sec-CH-UA-Platform-Version HTTP Header tells a server the operating system version the user agent is running.
  • Vary HTTP Header: To decide whether to utilize a cached answer or a new one from the origin server, the Vary HTTP response header is employed. Similar to the Sec-CH-UA-Platform-Version HTTP Header that specifies the user agent’s operating system version.

Which Browsers Support Sec-CH-UA-Platform-Version HTTP Header? 

There are multiple browsers that support Sec-CH-UA-Platform-Version HTTP Header. The following browsers are listed below.

  • Chrome Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • Edge Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • Opera Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • WebView Android Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • Chrome Android Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • Opera Android Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.
  • Samsung Internet Browser is compatible e with the Sec-CH-UA-Platform-Version HTTP Header.

You can see an image that shows cross-browsers compatibility of Sec-CH-UA-Platform-Version HTTP Headers below. 

Sec-CH-UA-Platform-Version HTTP Header.
Holistic SEO
Follow SEO

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.