I have read the following:
I needed to post string data by .Net Desktop Client to .NET Core host. I was getting unsupported media error. I have followed Shaun Luttin's answer and worked fine. The I found something easier to get just string data as folows in case someone else finds useful:
[HttpPost]
[Route("Request/Echo")]
public async Task Echo()
{
using (var Reader = new StreamReader(Request.Body, Encoding.UTF8))
{
return await Reader.ReadToEndAsync();
}
}
This post is very useful.