从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);

posted on 2015-09-29 14:49  symcious  阅读(376)  评论(0编辑  收藏  举报

导航