1/ 多線程下程序蹦的問題
查找 crul_easy_getinfo
將上面的 int http_code = 0; 改為 long http_code = 0;
2/ 多線程下超時退出 signal 11問題
在 curl_easy_perform(curl);前加上 curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L);
3/ 多線程環境下,程序啟動時調用一次 curl_global_init(CURL_GLOBAL_ALL);
程序退出時調用curl_global_cleanup();
http://blog.csdn.net/jaylong35/article/details/6988690