求老大解释一下 下面附上源码
[C#] 纯文本查看 复制代码 item = new HttpItem()
{
URL = "http://data.loulanpo.com/member.php?mod=logging&action=login",
Method = "get",
Accept= "text/html, application/xhtml+xml, */*",
UserAgent= "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
ContentType = "text/html",
};
HttpResult result = help.GetHtml(item);
string html = result.Html;
cookies1 = result.Cookie;
老大有时间的话可以亲自试一下
浏览器Cookies
键 值
Cookie vRKA_2132_sid=e0g4gS; vRKA_2132_saltkey=O11RL354; vRKA_2132_lastvisit=1477129121; vRKA_2132_lastact=1478238075%09misc.php%09seccode; vRKA_2132_ulastactivity=4eda8EWiZDJQTztkikWQ3Lu5FYs36a2RFggsRBJ%2BvPWe0SEn0GFI; vRKA_2132_lastcheckfeed=2%7C1478145029; vRKA_2132_nofavfid=1; vRKA_2132_checkpatch=1; vRKA_2132_sendmail=1; vRKA_2132_seccode=44.90ff06c71e433adad1
c# 返回的Cookies
vRKA_2132_saltkey=Fbbzg0m6; expires=Sun, 04-Dec-2016 06:25:26 GMT; path=/; httponly,vRKA_2132_lastvisit=1478237126; expires=Sun, 04-Dec-2016 06:25:26 GMT; path=/,vRKA_2132_sid=K3qx22; expires=Sat, 05-Nov-2016 06:25:26 GMT; path=/,vRKA_2132_lastact=1478240726%09member.php%09logging; expires=Sat, 05-Nov-2016 06:25:26 GMT; path=/,vRKA_2132_sid=K3qx22; expires=Sat, 05-Nov-2016 06:25:26 GMT; path=/
|