我从网上抓取网页,得到2个cookie
分别为Member%5Flogin=user%5Ftype=%C3%E2%B7%D1&user%5Fname=lighting%5Fpig&user%5FIs%5FVIP=&user%5Flogintime=2007%2D4%2D20+11%3A30%3A57&user%5Fid=141777&user%5Fendtime=ASPSESSIONIDSQBDCATS=IDKIMPPDCHCIOGAADKDBAJDM然后这2个cookie保存在
public CookieCollection Cookies
里面然后我利用这个cookie重新发送
HttpWebRequest Request = (HttpWebRequest)WebRequest.Create(Url);
Request.CookieContainer.Add(this.oCookies);
然后我发现
Request.header里面只有一个cookie, 为什么??Request.header内容如下:User-Agent: Mozilla/4.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.mso.com.cn/member/member_login.asp
Content-Type: application/x-www-form-urlencoded
Host: www.mso.com.cn
Cookie: ASPSESSIONIDSQBDCATS=IDKIMPPDCHCIOGAADKDBAJDM
Content-Length: 0
Connection: Keep-Alive然后就出现http500错误,谁告诉我为什么2个cookie只有一个写到header里了,怎么解决问题啊
分别为Member%5Flogin=user%5Ftype=%C3%E2%B7%D1&user%5Fname=lighting%5Fpig&user%5FIs%5FVIP=&user%5Flogintime=2007%2D4%2D20+11%3A30%3A57&user%5Fid=141777&user%5Fendtime=ASPSESSIONIDSQBDCATS=IDKIMPPDCHCIOGAADKDBAJDM然后这2个cookie保存在
public CookieCollection Cookies
里面然后我利用这个cookie重新发送
HttpWebRequest Request = (HttpWebRequest)WebRequest.Create(Url);
Request.CookieContainer.Add(this.oCookies);
然后我发现
Request.header里面只有一个cookie, 为什么??Request.header内容如下:User-Agent: Mozilla/4.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*
Referer: http://www.mso.com.cn/member/member_login.asp
Content-Type: application/x-www-form-urlencoded
Host: www.mso.com.cn
Cookie: ASPSESSIONIDSQBDCATS=IDKIMPPDCHCIOGAADKDBAJDM
Content-Length: 0
Connection: Keep-Alive然后就出现http500错误,谁告诉我为什么2个cookie只有一个写到header里了,怎么解决问题啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货