HttpWebRequest in c# do not work with .net 4.5

后端 未结 4 1473
无人共我
无人共我 2021-01-13 01:48

i\'m working on an c# project that send a xml to a server and receives a xml as response.
With .Net Framework 4.0 installed that works fine.
With .Net Framework 4.5

4条回答
  •  温柔的废话
    2021-01-13 02:45

    To be honest as you are now targeting .NET 4.5 I would have a look into using HttpClient instead of HttpWebRequest.

    HttpClient

提交回复
热议问题