C# HTTP Body with GET method

后端 未结 3 582
一个人的身影
一个人的身影 2021-02-09 12:05

I\'m using an API that requires me to set the method to GET and include a message body. However when I try to do this I get the following error: \"Cannot send a content-body wi

3条回答
  •  太阳男子
    2021-02-09 12:28

    It is entirely possible, but you have to use the newer HttpClient class: https://stackoverflow.com/a/47902348/70345

提交回复
热议问题