Accept x-www-form-urlencoded in Web API .Net Core

后端 未结 4 846
生来不讨喜
生来不讨喜 2020-12-31 02:19

I have a .Net Core Web API that is returning a 415 Unsupported Media Error when I try to post some data to it that includes some json. Here\'s part of what is returned in t

4条回答
  •  滥情空心
    2020-12-31 02:28

    I had the same problem. FormDataCollection has no default constructors which is required by Formatters. Use IFormCollection instead

提交回复
热议问题