用HttpWebRequest做POST请求时返回Http 417 expectation failed,解决方法是在发出请求之前设置:

System.Net.ServicePointManager.Expect100Continue = false;

原因是HttpWebRequest在默认情况下发出请求会添加“Expect: 100-Continue”请求头。

相关文章:

  • 2021-08-04
  • 2022-02-13
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-29
  • 2021-12-04
  • 2021-12-12
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案