|
楼主 |
发表于 2013-7-8 13:10:18
|
显示全部楼层
[code=csharp] private void button1_Click(object sender, EventArgs e)
{
string otp="";
HttpItem item = new HttpItem()
{
URL="http://tw.beanfun.com/TW/CheckLogin.aspx?Page=2",
Encoding=Encoding.UTF8,
Method="get",
};
HttpResult result = http.GetHtml(item);
otp=ParseValue(result.Html,"name='otp' value='","'");
if (result.StatusCode == System.Net.HttpStatusCode.OK)
{
}
item = new HttpItem()
{
URL = "https://tw.login.beanfun.com/login/id-pass_form.aspx?otp1="+otp,
Encoding =Encoding.UTF8,
Method="get",
Cookie=result.Cookie,
// CerPath = "zs.cer",
};
item.Header.Add("x-requested-with", "XMLHttpRequest");
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
result = http.GetHtml(item);
}[/code]
我不行了,上代码,求支招{:soso_e125:}
飞哥.求助啊,真是弄了快一天了, 昨天一晚都没睡.. |
|