HTTP/1.1 302 moved Temporarily
我用http登录某网站出错,返回
HTTP/1.1 302 Moved Temporarily
Server: ymweb/1.5.34
Date: Wed, 10 Aug 2011 10:16:42 GMT
Content-Type: text/html
Content-Length: 98
Connection: keep-alive
Location: http://search.gd118114.cn
IE登录时抓包发现发送的是
GET /head.aspx HTTP/1.1
Accept: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, */*
Referer: http://www.ibcbet.com/
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; @*^Tk9<k}Rj>ZM[DfDfcYC+x5ZfEx:iGmii/,I; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Host: www.ibcbet.com
Connection: Keep-Alive
Cookie: __utma=185542641.1112172571.1312975618.1312975618.1312975618.1; __utmb=185542641.1.10.1312975618; __utmc=185542641; __utmz=185542641.1312975618.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
收到的是
HTTP/1.1 302 Found
Date: Wed, 10 Aug 2011 11:27:18 GMT
Location: /head.aspx?20110303
Set-Cookie: ASP.NET_SessionId=w01waa55emjha1f4ibjszhit; path=/; HttpOnly
Set-Cookie: MuSou=20110303; domain=www.ibcbet.com; expires=Fri, 10-Feb-2012 11:27:18 GMT; path=/
Content-Type: text/html; charset=utf-8
Cache-Control: private
Content-Length: 140
而我发送的是
GET /head.aspx HTTP/1.1
Accept: */*
Referer: http://www.ibcbot.com/
Accept-Language: zh-CN
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Host: www.ibcbot.com
Connection: Keep-Alive
请问cookie怎么获得的,IE登录时抓包没有发现有 __utma=185542641.1112172571.1312975618.1312975618.1312975618.1; __utmb=185542641.1.10.1312975618; __utmc=185542641; __utmz=185542641.1312975618.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)这么一串啊。
请高手指点,急!