HTTP Headers
Sec CH UA Platform Version
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 type | Request header, Client hint |
Forbidden request header | Yes (<code>Sec-</code> prefix) |
Syntax
Syntax
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/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.
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
- Install and open the Requestly Chrome extension. You can find it on the Chrome Web Store.
- Create a new rule: Click on “Create Rule” and choose “Modify Headers” from the list of available rule types.
- 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”).
- Set the URL condition: Specify the URL or pattern where this header change should apply (e.g., https://example.com/*).
- 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.
Table of Contents
- No headings found.