http://xiangai.taobao.com
http://shop148612228.taobao.com

ashx 接受 post json 请求

  HttpContext.Current.Response.ContentType = "application/json";
            HttpContext.Current.Response.ContentEncoding = Encoding.UTF8;

                Stream inputStream = HttpContext.Current.Request.InputStream;
                Encoding encoding = HttpContext.Current.Request.ContentEncoding;
                StreamReader streamReader = new StreamReader(inputStream, encoding);
                string strJson = streamReader.ReadToEnd();
 

posted @ 2019-07-11 13:52  万事俱备就差个程序员  阅读(731)  评论(0编辑  收藏  举报

http://xiangai.taobao.com
http://shop148612228.taobao.com
如果您觉得对您有帮助.领个红包吧.谢谢.
支付宝红包
微信打赏 支付宝打赏