代码如下:
[C#] 纯文本查看 复制代码 string AsyncCodeValue = GetAsyncCode(cookiestr, Rsid);
HttpHelper httphelper = new HttpHelper();
HttpItem httpitem = new HttpItem()
{
URL = "https://pddn2.kuaidizs.cn/newIndex/index.xhtml?userId=" + AsyncCodeValue + "&api_name=get_batch_sync_status",
Accept = "application/json",
ContentType = "application/x-www-form-urlencoded; charset=UTF-8",
Cookie = cookiestr,
Method = "GET",
Host = "pddn2.kuaidizs.cn",
Referer = "https://pddn2.kuaidizs.cn/newIndex/index.xhtml?userId=" + Rsid[0] + "&kdzsPddToken=" + Rsid[1],
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0",
};
httpitem.Header.Add("qnquerystring", Rsid[0] + "_" + Rsid[1]);
HttpResult result = httphelper.GetHtml(httpitem);
MessageBox.Show(result.Html);
出错如下:
站长,这个问题怎么解决呢?
|