Archive | Contact | Privacy
17th March 2008
Nerd 2.0

C # WebRequest and incorrect web server

C # Post request to work in their default not work with all Web servers.

So it can happen that when a misconfigured web server a "(417) Expectation Failed" WebException is thrown, because the web server is no "100-continue" returns.

Very annoying and not something easy also off, but it is yet.

// "HTTP_EXPECT" Abschalten
System.Net.ServicePointManager.Expect100Continue = false;

Vielen Dank für die Lösung an haacked.com .