为什么用CHttpFile的QueryInfo得不到完全的cookie?
抓包的结果是:
Set-Cookie: cookie2=a40802091400dd5ad7ef2c2aca48c111;Domain=.taobao.com;Path=/;HttpOnly
Set-Cookie: t=84f7abac86e580172cf8057d48c8c540; Domain=.taobao.com; Expires=Sat, 13-Oct-2012 09:37:09 GMT; Path=/
Set-Cookie: v=0; Domain=.taobao.com; Path=/
而用QueryInfo得到的cookie只有两条:
Set-Cookie: cookie2=a40802091400dd5ad7ef2c2aca48c111;Domain=.taobao.com;Path=/;HttpOnly
Set-Cookie: v=0; Domain=.taobao.com; Path=/
中间那条没有了,谁说说这是怎么回事啊?
获取cookie的代码是:
CString temp; DWORD index=0; while(pFile->QueryInfo(HTTP_QUERY_SET_COOKIE,temp,&index)) { str=str+temp; index++; }