c# 获取请求内容
c# 获取请求内容
var requestData = "";
var stream = HttpContext.Current.Request.InputStream;
stream.Position = 0;
using (var streamReader = new StreamReader(stream, Encoding.UTF8))
{
requestData = streamReader.ReadToEndAsync().Result;
stream.Position = 0;
}
本文来自博客园,作者:临时工~,转载请注明原文链接:https://www.cnblogs.com/jixinyu12345/p/15473856.html