hotmail登陆是需要cookie的,小弟的程序一直没能取到对应的Cookie,但是用httpwatch去监测hotmail的登陆页面却发现是有cookie的,求教。 HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://login.live.com/ppsecure/post.srf?id=2");
request.CookieContainer = new CookieContainer(); HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string cookieStr = response.Headers["Set-Cookie"]; //这样取是有cookie的,取到的值是MSPOK=$uuid-6ca017b8-177d-44a6-8527-dd874c965309; domain=login.live.com;path=/;version=1 请问为什么request.CookieContainer是0呢?
我用httpwatch监测https://login.live.com/ppsecure/post.srf?id=2页面,显示的cookie与我取到的又不相同,具体的数值是_HOP AAON BS.......wls我看了下httpwatch中有近30个cookie,分别属于live.com和login.live.com域名下,求教
request.CookieContainer = new CookieContainer(); HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string cookieStr = response.Headers["Set-Cookie"]; //这样取是有cookie的,取到的值是MSPOK=$uuid-6ca017b8-177d-44a6-8527-dd874c965309; domain=login.live.com;path=/;version=1 请问为什么request.CookieContainer是0呢?
我用httpwatch监测https://login.live.com/ppsecure/post.srf?id=2页面,显示的cookie与我取到的又不相同,具体的数值是_HOP AAON BS.......wls我看了下httpwatch中有近30个cookie,分别属于live.com和login.live.com域名下,求教
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货