9
HTTP POST retorna erro: 417 "Expectation Failed".
Quando tento postar em um URL, resulta na seguinte exceção: O servidor remoto retornou um erro: (417) Expectation Failed. Aqui está um código de exemplo: var client = new WebClient(); var postData = new NameValueCollection(); postData.Add("postParamName", "postParamValue"); byte[] responseBytes = client.UploadValues("http://...", postData); string response = Encoding.UTF8.GetString(responseBytes); // (417) Expectation Failed. …