HttpWebRequest - Error

I don't get how I can get around this problem I have, the only thing I can think of, is that the headers sent by the servers are different...


(note: This is the mini web server within my cable modem)

The headers returned by the modem (vb.net errors):
"Content-Type: text/html

"

The headers returned by my local IIS server (vb.net loads html ok):
"Server: Microsoft-IIS/5.1
Date: Fri, 02 Dec 2005 15:21:49 GMT
X-Powered-By: ASP.NET
Transfer-Encoding: chunked
Content-Type: text/html

"

Any ideas

Screen shot (of the source+error):
http://users.adelphia.net/~micromause/neterr.png



Answer this question

HttpWebRequest - Error

  • sql2k5 newbie

    NEVERmind... =P Found a fix

    App.Config

    <system.net>

    <settings>

    <httpWebRequest useUnsafeHeaderParsing="true" />

    </settings>

    </system.net>

    =P


  • HttpWebRequest - Error