web api获得Post数据为空的解决办法
using (var contentStream = Request.Content.ReadAsStreamAsync().Result) { contentStream.Seek(0, SeekOrigin.Begin); using (var sr = new StreamReader(contentStream)) { string str = sr.ReadToEnd(); } }
https://www.itranslater.com/qa/details/2583767294652449792
慎于行,敏于思!GGGGGG