如题,直接上代码
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "application/json";
StreamReader reader = new StreamReader(context.Request.InputStream, System.Text.Encoding.UTF8);
String strJson = HttpUtility.UrlDecode(reader.ReadToEnd());
context.Response.Write(strJson);
}
public bool IsReusable {
get {
return false;
}
}