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

解决办法:

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

文字发表于: http://ysoho.cnblogs.com 作者Homepage:http://www.ysoho.com  COPY 请保留 此声明
原文地址:https://www.cnblogs.com/Ysoho/p/1905522.html