ASP.NET CORE reads the content in the POST request BODY

StreamReader stream = new StreamReader(Request.Body);
string body = stream.ReadToEndAsync().GetAwaiter().GetResult();

log("读取到的BODY="+ body);

//转成JSON对象
JObject jobj = JObject.Parse(body);

Guess you like

Origin blog.csdn.net/qianjiu/article/details/120196305