The HTTP Sec-CH-UA-WoW64 Request header is a user agent client hint indicating if a 32-bit user-agent application is running on a 64-bit Windows machine.
WoW64 was commonly used to know which NPAPI plugin installer should be offered for download. This client hint header is used for backwards compatibility considerations, to provide a one-to-one mapping from the user-agent string of certain browsers to UA client hints.
<table class="properties"> <tbody> <tr> <th scope="row">Header type</th> <td> Request header, <a href="/en-US/docs/Web/HTTP/Guides/Client_hints">Client hint</a> </td> </tr> <tr> <th scope="row">Forbidden request header</th> <td>Yes (<code>Sec-</code> prefix)</td> </tr> </tbody> </table>
Syntax
Sec-CH-UA-WoW64: <boolean>
Directives
<boolean>- :
?1indicates that the user agent's binary is running in 32-bit mode on 64-bit Windows (true), while?0means that it is not (false).
- :
Examples
Using Sec-CH-UA-WoW64
A server requests the Sec-CH-UA-WoW64 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-WoW64
The client may choose to provide the hint, and add the Sec-CH-UA-WoW64 header to subsequent requests.
Adding Sec-CH-UA-WoW64: ?1 means the user agent's binary is running in 32-bit mode on 64-bit Windows:
GET /my/page HTTP/1.1
Host: example.site
Sec-CH-UA-WoW64: ?1
Sec-CH-UA-Platform: "Windows"
Sec-CH-UA-Form-Factors: "Desktop"
Specifications
Browser compatibility
See also
- Client hints
- User-Agent Client Hints API
- Accept-CH
- HTTP Caching: Vary and Vary header
- Improving user privacy and developer experience with User-Agent Client Hints on developer.chrome.com
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
