QueryInfo获取cookie时的有关问题

QueryInfo获取cookie时的问题
C/C++ code

    
    CHttpFile *pFile;
    //………………………………
    CString temp;
    DWORD index=0;
    while(pFile->QueryInfo(HTTP_QUERY_SET_COOKIE,temp,&index))
    {
        str+=temp;
        index++;    
    }
    AfxMessageBox(str);



为什么取的cookie不全?只能取第一行?求高手解答~

------解决方案--------------------
把循环去掉看看
------解决方案--------------------
http://hi.baidu.com/maxzism/item/bdccb834dcb99ef3e6bb7a30
------解决方案--------------------
探讨

http://hi.baidu.com/maxzism/item/bdccb834dcb99ef3e6bb7a30