protected void Page_Load(object sender, EventArgs e)
{
MemoryStream memstream = new MemoryStream();
Request.InputStream.CopyTo(memstream);
memstream.Position = ;
using (StreamReader reader = new StreamReader(memstream))
{
string text = reader.ReadToEnd();
}
}
相关文章
- How to get raw request body in ASP.NET?
- 错误:Request with GET/HEAD method cannot have body 解决
- ASP.NET Core 5.0 中读取Request中Body信息
- ASP.NET Core自定义中间件如何读取Request.Body与Response.Body的内容详解
- ASP.NET Core读取Request.Body的正确方法
- IIS如何处理一个Asp.net请求 (How IIS Process Asp.net request)
- How do I get ASP.NET MVC to honor my customErrors settings?
- 如何在ASP.NET Core自定义中间件中读取Request.Body和Response.Body的内容?
- ASP.NET Core文件上传IFormFile于Request.Body的羁绊
- How do I get ASP.NET MVC to honor my customErrors settings?