|
楼主 |
发表于 2018-9-1 19:45:32
|
显示全部楼层
item = new HttpItem()
{
URL = "http://pc4.1ll11.com/sscgp53745f/login/66c8a24a15_rdsess/k",//URL 必需项
Method = "GET",//URL 可选项 默认为Get
Timeout = 100000,//连接超时时间 可选项默认为100000
ReadWriteTimeout = 30000,//写入Post数据超时时间 可选项默认为30000
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
Cookie = cookie,//字符串Cookie 可选项
Referer = "http://pc4.1ll11.com/sscgp53745f/user/login.html.auth",//来源URL 可选项
UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",//用户的浏览器类型,版本,操作系统 可选项有默认值
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",// 可选项有默认值
//ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
Allowautoredirect = false,
};
result = http.GetHtml(item);
SystemSet.RedirectHtml = result.RedirectUrl;
cookie = result.Cookie;
还是不行。 |
|