|
HttpHelper httpHelper1 = new HttpHelper();
HttpItem httpItem1 = new HttpItem()
{
Method = "get",
URL = "http://www.rakuten.com/r/SNELLI125?eeid=28187",
Host = "www.rakuten.com",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
Timeout = 3000,
ReadWriteTimeout = 3000,
Encoding = System.Text.Encoding.Default
};
HttpResult httpResult = httpHelper1.GetHtml(httpItem1);
string str = Cookiestr(httpResult.Cookie, "_abck=", ";");
string str1 = Cookiestr(httpResult.Cookie, "bm_sz=", ";");
CookieCollection cookie = new CookieCollection();
Cookie cookie1 = new Cookie();
cookie1.Value = str;
cookie1.Name = "_abck";
cookie.Add(cookie1);
cookie1 = new Cookie();
cookie1.Value = str1;
cookie1.Name = "bm_sz";
cookie.Add(cookie1);
httpItem1 = new HttpItem()
{
Method = "get",
URL = "https://www.rakuten.com/r/SNELLI125?eeid=28187",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
Timeout = 3000,
ReadWriteTimeout = 3000,
CookieCollection = cookie
};
参数都照着网页的数据提交了 还是跪了 不知道哪里出问题 跪求有大佬 指点下 网站 :https://www.rakuten.com/r/SNELLI125?eeid=28187
这是重定向后的网址?
|
-
首次访问的数据
|