62,243
社区成员




Request.SaveAs("d:\\ironfe.txt", true);
POST /fdfd/fdfdfd HTTP/1.1
Content-Length: 276
Content-Type: application/json
Accept: */*
Host: aaaaa.afaff.com
User-Agent: open robot v1.0
{"code":200,"data":{"result":1,"xfdderId":"11004-20140100356","cpUserInfo":"fdfff","payType":"1","num":"1","cpPrice":"0.01","openId":"15311004124","transTime":"24-06-30 21:30:53","cpOrderId":"3860"},"sign":"e163536bdd37a7cbc7bd8a4ffa2540c0529af854"}
$GLOBALS['HTTP_RAW_POST_DATA'];
方便的获取到
byte[] data = Request.BinaryRead(Request.TotalBytes);
context.Response.ContentType = "application/json";
context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
using (var reader = new System.IO.StreamReader(context.Request.InputStream))
{
string xmlData = reader.ReadToEnd();
}
结贴.