webclient and expect100continue

后端 未结 4 1057
傲寒
傲寒 2021-02-14 21:52

What is the best way to set expect100continue when using WebClient(C#.NET). I have this code below, I still see 100 continue in the header. Stupid apache still complains with 50

4条回答
  •  难免孤独
    2021-02-14 22:44

    One of my below approach also worked,

    In my constructor of class (service calling), you can set System.Net.ServicePointManager.Expect100Continue = false;

    and then I have created BasicHttpBinding object and continued, it executed successfully.

提交回复
热议问题