首页 > 代码库 > The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

打开表单偶尔会出现这个提示,解决方法:

web.config增加配置:

 

<configuration>     <system.net>         <settings>             <httpWebRequest useUnsafeHeaderParsing="true" />         </settings>     </system.net> </configuration>

 

The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF