飞哥,我试过了,还是不行。
[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://iforgot.apple.com/password/verify/appleid",//URL 必需项
Method = "GET",//URL 可选项 默认为Get
Timeout = 100000,//连接超时时间 可选项默认为100000
ReadWriteTimeout = 30000,//写入Post数据超时时间 可选项默认为30000
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36",//用户的浏览器类型,版本,操作系统 可选项有默认值
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",// 可选项有默认值
ContentType = "text/html;charset=UTF-8",//返回类型 可选项有默认值
ResultType = ResultType.String,//返回数据类型,是Byte还是String
SecurityProtocol = SecurityProtocolType.Tls12,
Allowautoredirect =true
};
item.Header.Add("Upgrade-Insecure-Requests", "1");
HttpResult result = http.GetHtml(item);
string html = result.Html; |