ashx 接受 post json 請求

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

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

相關文章
相關標籤/搜索