Home > Uncategorized > Http status 417: expectation failed

Http status 417: expectation failed

An interesting problem I found when calling a web service was this error:

Http status 417: expectation failed

Reading posts on the net said this could be a proxy problem, but I wasn’t using a proxy, so this wasn’t it. The solution appeared
as this little gem:

ServicePointManager.Expect100Continue = false;

 

I guess the server must have responded with a HTTP 100, which was not expected by the client, or vice versa. The Webservice
itself appeared to be hosted on a non-.net platform.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment