|
- var httphelper = new FunctionServices.httphelper();
- FunctionServices.HttpItem httpItem = new FunctionServices.HttpItem();
- httpItem.URL = @"htt ps://w ww.kuaipa n.cn/ind ex.php?ac=account&op=login";
- httpItem.Encoding = "UTF-8";
- httpItem.Postdata = string.Format("isajax=yes&username={0}&userpwd={1}", UserName, Password);
- httpItem.Referer = @"ht tps://www .kuaipan.cn/account_login.htm";
- httpItem.Method = "POST";
- httpItem.ContentType = "application/x-www-form-urlencoded";
- httpItem.Cookie = httphelper.Cookie;
- string html2 = httphelper.GetHtml(httpItem);
复制代码 想做一个快盘自动登陆查找文件的程序,上面的代码正常来说httpItem.URL应该返回登陆结果的JSON字符串
但是上面这段代码返回的是登陆页面的HTML代码,也就是登陆没成功,请问是什么原因
请问能否以这个快盘为例做个 实例呢?
论坛的登陆HTT PS ://WWW .CCKAN.NET的例子我看了,照着做了也用不了
|
|