libcurl 获取到的 cookie 不全
curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
headerlist = curl_slist_append(headerlist, "Host:sellercentral.);
headerlist = curl_slist_append(headerlist, "Connection:keep-alive");
headerlist = curl_slist_append(headerlist, "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
headerlist = curl_slist_append(headerlist, "User-Agent:Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36");
headerlist = curl_slist_append(headerlist, "Referer:https://sellercentral.*Version*=1&*entries*=0&");
headerlist = curl_slist_append(headerlist, "Cache-Control:max-age=0");
//headerlist = curl_slist_append(headerlist, "Accept-Encoding:gzip,deflate,sdch");
headerlist = curl_slist_append(headerlist, "Accept-Language: zh-CN,zh;q=0.8,en;q=0.6");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
curl_easy_setopt(curl, CURLOPT_URL, "https://sellercentral.);
curl_easy_setopt(curl, CURLOPT_POST, 0L);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, call_wirte_func);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &szbuffer);
curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "D:\\cookie_open.txt");//把服务器发过来的cookie保存到cookie_open.txt
#ifdef SKIP_PEER_VERIFICATION
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
#endif
#ifdef SKIP_HOSTNAME_VERFICATION
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
#endif
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
curl_slist_free_all(headerlist);
获取到的cookie只能获取到2条