Expect: 100-continue

前端 未结 1 1854
谎友^
谎友^ 2021-02-13 21:53

There are a lot of questions on this topic, but - they gave me no answer.

As from advices - there is one to set ServicePointManager.Expect100Continue = false

1条回答
  •  无人共我
    2021-02-13 22:28

    You can do it this way :

    _request.ServicePoint.Expect100Continue = false;
    

    This will disable the Expect: 100-continue for a particular HttpWebRequest instance.

    0 讨论(0)
提交回复
热议问题