https://www.puxinwangxiao.com/
今天做一个自动登录,就是上面这个网站的,但是使用httphelper获取不到cookie。
代码如下:
[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://www.puxinwangxiao.com/"
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3",
Method = "GET",
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36",
};
HttpResult result = http.GetHtml(item);
MessageBox.Show(result.Cookie);
请问大神问题出在哪里?
|