C# HTTP Body with GET method

后端 未结 3 585
一个人的身影
一个人的身影 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:43

    It is not recommended to send content with a GET request. See this post for further details: HTTP GET with request body

    And this is what Roy Fielding has to say about the topic.

提交回复
热议问题