接收端通过Request.InputStream读取

接收端通过Request.InputStream读取请求页面参数,最终的字符串。

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

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

posted on 2017-08-02 15:54  shipaifu  阅读(206)  评论(0编辑  收藏  举报

导航