HTTP POST Returns Error: 417 “Expectation Failed.”

System.Net.HttpWebRequest adds the header ‘HTTP header “Expect: 100-Continue”‘ to every request unless you explicitly ask it not to by setting this static property to false:

System.Net.ServicePointManager.Expect100Continue = false;

Some servers choke on that header and send back the 417 error you’re seeing.

Give that a shot.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)