.Section=ResponseHeader Detail=CR

此错误在asp.net的webrequest时候读网页少\r时候会出
msdn解答
在application.config或web.config文件里加入
<system.net>

<settings>

<httpwebrequest useunsafeheaderparsing="true">

</httpwebrequest>

</settings>

</system.net>
然后很多人就问 …… 我在winform可怎么办啊
这个开始我也不知道 因为我也是遇到这个问题才查德
人么 就需要动脑思考 winform当然是放在 app.config里边了
但是对放法没有说明 我总结一下
<configuration>

<configsections>

</configsections>

<system.net>

<settings>

<httpwebrequest useunsafeheaderparsing=”true”>

</httpwebrequest>

</settings>

….</system.net></configuration>

Social tagging:

发表评论