ASP.NET(C#)取得post请求的所有参数
发布日期:2015-06-01 17:14:27
所属栏目:开发技术
string postParam = ""; //post的所有参数
using (System.IO.StreamReader sr = new System.IO.StreamReader(Request.InputStream))
{
postParam = sr.ReadLine();
}
获取结果如:account=496087321&productType=V2&productdesc=1。
Request.InputStream:获取传入的 HTTP 实体主体的内容。
发表评论