获取请求体数据
[HttpPost]
public IHttpActionResult AliCallBack()
{
// 两种都可以,用流的话要自己转
// Request.Content.ReadAsStreamAsync().Result
// 用这个就好,自动会转成字符串
var requestContent = Request.Content.ReadAsStringAsync().Result;
return Ok();
}
标签:webapi,Request,Content,Result,HttpPost,IHttpActionResult
From: https://www.cnblogs.com/BOSET/p/17826112.html