大网数据广告活动
Web服务器与PHP

Parsing Exceptions

· 52CE 我爱测

HTTP Server API provides registry keys to support parsing exceptions to the HTTP/1.1 specification for backward compatibility.

HTTP Server API provides registry keys to support parsing exceptions to the HTTP/1.1 specification for backward compatibility. These exceptions are not enabled by default and should be enabled only on a case-by-case basis, when the server experiences compatibility issues with HTTP clients. These values are created under the following registry location:

HKEY_LOCAL_MACHINE
   System
      CurrentControlSet
         Services
            Http
               Parameters

The following table lists registry keys provided to support the exceptions listed. To enable an exception set the corresponding key value to 1 and restart the HTTP service.

Key name Description
AllowWeakHeaderNameSyntax (DWORD) Allows the HTTP parser to accept header names with separator characters such as '?'.
AllowWeakHeaderValueSyntax (DWORD) Allows the HTTP parser to accept header values with raw (unescaped) control characters in it.
AllowCaseInsensitiveVerbs (DWORD) Allows the HTTP parser to accept lowercase HTTP methods/verbs such as "get".
AllowUnEscapedRestrictedChars (DWORD) Allows the HTTP parser to accept control characters in abspath and query strings of the URL. In case of an absolute URL, control characters will not be allowed in the hostname. All flavors of URLs, namely UTF8, DBCS and ANSI, will allow control characters. All ASCII control characters except NUL (0x00), LF (0x0a), CR (0x0d) and Horizontal Tab(0x09) will be allowed.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。