首页 > 其他 > 详细

异常:The server committed a protocol violation

时间:2017-07-10 11:46:39      阅读:1982      评论:0      收藏:0      [点我收藏+]

技术分享

 

The server committed a protocol violation. Section=ResponseHeader Detail=‘Content-Length‘ header value is invalid

今天客户端偶然碰到了这个问题,从来没有发生过。

网上收集的资料来看,大部分的解决方案是在 web config文件 和 app config文件添加一个配置:

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

 

一个 Stack Overflow 的提问:

https://stackoverflow.com/questions/2482715/the-server-committed-a-protocol-violation-section-responsestatusline-error 

 

过了一会儿客户端有一切正常了,这个问题我还搞不明白。

我的服务是部署在Azure云,采用paas服务的方式部署的,具体问题有待深入分析。

 

异常:The server committed a protocol violation

原文:http://www.cnblogs.com/easeyeah/p/7144914.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!