string result = string.Empty;
using (StreamReader stream = new StreamReader(Request.InputStream))
{
result = HttpUtility.UrlDecode(stream.ReadToEnd(), Encoding.UTF8);
//todo
}
Response.Write("{\"msg\":\"接收成功\",\"code\":200,\"success\":true}");ASP.NET(C#)接收POST提交的JSON数据示例
在做一个项目对接时,状态信息对方使用POST提交JSON数据进行推送, ASP.NET C#接收程序如下:
评论(0)
暂无评论。