从Post请求中获取传递的Content

HttpContextBase context = (HttpContextBase)Request.Properties["MS_HttpContext"];
byte[] byts = new byte[context.Request.ContentLength];
context.Request.InputStream.Read(byts, 0, byts.Length);
string strReq = System.Text.Encoding.Default.GetString(byts);

原文地址:https://www.cnblogs.com/symcious/p/4846325.html