|
楼主 |
发表于 2017-9-8 10:27:03
|
显示全部楼层
@站长苏飞
HttpHelper http = new HttpHelper();
var res = http.GetHtml(new HttpItem()
{
URL = "http://www.soyoung.com/passport/login",
Method = "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/60.0.3112.7 Safari/537.36",
ContentType = "text/html", //返回类型 可选项有默认值
Host = "www.soyoung.com",
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
Allowautoredirect = false, //是否根据301跳转 可选项
ResultType = ResultType.String, //返回数据类型,是Byte还是String
});
为撒请求之后
res.CookieCollection.Count为0
但是res.Cookie确实有数据。 |
|