🎉 Requestly joins BrowserStack to build the future of application testing. Read more

HTTP Headers

Sec CH UA Platform Version

HTTP Header

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The HTTP <code>Sec-CH-UA-Platform-Version</code> request header is a user agent client hint which provides the version of the operating system on which the user agent is running.

Header typeRequest header,
Client hint
Forbidden request headerYes (<code>Sec-</code> prefix)

Syntax

Syntax

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

Directives

The version string generally includes the operating system’s version, formatted as a series of dot-separated numbers representing the major, minor, and patch versions, such as "11.0.0". In contrast, the version string on Linux systems is typically empty.

Example

Examples

Using Sec-CH-UA-Platform-Version

A server requests the <Sec-CH-UA-Platform-Version> header by including the <Accept-CH> in a response to any request from the client, using the name of the desired header as a token:

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

The client may choose to provide the hint, and add the <Sec-CH-UA-Platform-Version> header to subsequent requests.
For example, the following request headers might be sent from a browser running on Windows 10.

http
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 Modify Header using Requestly

Requestly is a powerful Chrome extension that allows you to modify HTTP headers, including the Sec-CH-UA-Platform-Version header. This is especially useful for testing how websites or applications behave when they receive different platform version information from the client browser. Steps to Modify the Sec-CH-UA-Platform-Version Header:

  1. Install and open the Requestly Chrome extension. You can find it on the Chrome Web Store.
  2. Create a new rule: Click on “Create Rule” and choose “Modify Headers” from the list of available rule types.
  3. Add a new header modification:
    • Under “Action”, select “Add” or “Override”.
    • In the “Header Name” field, enter Sec-CH-UA-Platform-Version.
    • In the “Header Value” field, enter the version string you want to send (e.g., “14.0.0”).
  4. Set the URL condition: Specify the URL or pattern where this header change should apply (e.g., https://example.com/*).
  5. Save the rule.

Once configured, Requestly will modify the Sec-CH-UA-Platform-Version header in outgoing requests matching the specified URL, helping you test how your server or application handles different platform version information. Modifying the Sec-CH-UA-Platform-Version header can be helpful to simulate different client platform versions, allowing developers to ensure their sites deliver proper functionality or content tailored to specific platform versions.