接收终端Request.InputStream阅读

接收终端Request.InputStream阅读请求页面参数,最后字符串。

byte[] byts = new byte[HttpContext.Current.Request.InputStream.Length];

                HttpContext.Current.Request.InputStream.Read(byts, 0, byts.Length);
                string req = System.Text.Encoding.Default.GetString(byts);
                req = HttpContext.Current.Server.UrlDecode(req);

版权声明:本文博客原创文章,博客,未经同意,不得转载。

posted @ 2015-07-06 19:32  zfyouxi  阅读(459)  评论(0编辑  收藏  举报