|
登录地址:
https://www.windeln.de/login/customer-post
或者 https://www.windeln.de/login/customer
账号:sinasina@wheda.de
密码:zhtxhaha
测试是成功的,但是跳转再次访问账号页面
https://www.windeln.de/account/
就出问题,麻烦站长大人,各位帮忙瞧瞧
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "file:///C:\Users\Meis\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.pnghttps://www.windeln.de/login/customer-post",//URL 必需项
Method = "post",//URL 可选项 默认为Get
IsToLower = false,//得到的HTML代码是否转成小写 可选项默认转小写
Cookie = "",//字符串Cookie 可选项
Referer = "",//来源URL 可选项
Postdata = "loginEmail=sinasina%file:///C:\Users\Meis\AppData\Roaming\Tencent\QQ\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png40wheda.de&loginPassword=zhtxhaha",//Post数据 可选项GET时不需要写
Timeout = 100000,//连接超时时间 可选项默认为100000
ReadWriteTimeout = 30000,//写入Post数据超时时间 可选项默认为30000
UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",//用户的浏览器类型,版本,操作系统 可选项有默认值
//Content-Type: application/x-www-form-urlencoded
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
Allowautoredirect = true,//是否根据301跳转 可选项
ResultType = ResultType.String
};
item.Header.Add("Accept-Encoding", "gzip, deflate, br");
item.Header.Add("Accept-Language", "de-DE,de");
HttpResult result = http.GetHtml(item);
string html = result.Html;
string cookie = result.Cookie;
之后访问账号中心页面就出错
https://www.windeln.de/account/
|
|