post不了数据,望大家帮忙看看[C#] 纯文本查看 复制代码 const string url = "http://www.mydg.com/test.php";
var requestHeader = new HttpItem
{
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
URL = url,
Cookie = _cookie,
Method = "post",
Allowautoredirect = true,
UserAgent =
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36",
PostDataType = PostDataType.String,
Postdata = string.Format("item_url_refer={0}&item_id={1}&item_id_num={2}&skuId={3}", "", "17445701835", "17445701835", "42960695674")
};
var http = new HttpHelper();
var result = http.GetHtml(requestHeader);
test.php获取不了数据 |