不使用代理或者使用IE设置的代理可正常登陆
但是在代码设置了代理就获取不到数据,求老大帮忙分析下。
[C#] 纯文本查看 复制代码 public HttpResult login(string sProxyIp,string username, string pwd)
{
string html = string.Empty;
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://reg.163.com/logins.jsp",
Method = "POST",
Referer = "http://reg.163.com/",
Postdata = string.Format("type=1&product=urs&url=&url2=http://reg.163.com/UserLogin.do&username={0}&password={1}", username, pwd),
ContentType = "application/x-www-form-urlencoded",
ResultCookieType = ResultCookieType.CookieCollection,
ProxyIp = sProxyIp,
};
HttpResult result = http.GetHtml(item);
return result;
}
下面是账号和代理ip,求大大帮忙看看。
username:xvpzsm5c00ri1
pwd:asdf1234
27.50.128.242:88
42.62.48.58:8081
58.18.183.179:9999
@站长苏飞
|