I\'m new to web-api. I want to receive a HTTP POST data using web-api. The content-type is application/x-www-form-urlencoded, and the request body is like:
application/x-www-form-urlencoded
For asp.net core 3.x you need to supply the correct decorators to handle the request correctly:
[HttpPost("MyPostHandler")] [Consumes("application/x-www-form-urlencoded")] public async Task MyPostHandler([FromForm] string id) { }