Section=ResponseStatusLine

在使用HttpWebrequest抓取信息的时候,遇到了一个错误!

   The server committed a protocol violation. Section=ResponseStatusLine

 

  解决办法:在Web.config中加入

<system.net>
    <settings>
      <httpWebRequest useUnsafeHeaderParsing="true" />
    </settings>
  </system.net>
posted @ 2009-02-27 00:20  waynecn  阅读(767)  评论(1编辑  收藏  举报