Archive | Imprint | Privacy
17th March 2008
Nerd 2.0

C # WebRequest and faulty web server

C # Post request to work in their default setting, unfortunately, not all web servers.

It can happen that when a misconfigured web server a "(417) Expectation Failed" WebException is thrown, since the web server not a "100-continue back" delivers.

Very annoying stuff and not just well off, but it is yet.

 / / "HTTP_EXPECT" switch off
 System.Net.ServicePointManager.Expect100Continue = false;

Thank you for the solution to haacked.com .