HttpWebRequest =ResponseHeader Detail=CR
- 2020-05-05 11:44:00
- OfStack
The server submitted a protocol conflict. Section=ResponseHeader Detail=CR must be followed by LF
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Principal means that Microsoft does not tolerate server responses that do not comply with the httpHeader requirement in RFC 822 that httpHeader must end with CRLF.
One solution is to add
to the application.config or web.config files
< system.net >
< settings >
< httpWebRequest useUnsafeHeaderParsing="true" / >
< /settings >
< /system.net >
Allow the system to tolerate (tolerant) only hearder information
ending in CR or LF
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
Principal means that Microsoft does not tolerate server responses that do not comply with the httpHeader requirement in RFC 822 that httpHeader must end with CRLF.
One solution is to add
to the application.config or web.config files
< system.net >
< settings >
< httpWebRequest useUnsafeHeaderParsing="true" / >
< /settings >
< /system.net >
Allow the system to tolerate (tolerant) only hearder information
ending in CR or LF