int rsp_code;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &rsp_code);
curl_easy_cleanup(curl);
This code causes the stack to overflow in x64,because the type of rsp_code, It should be amended as follows.
long rsp_code;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &rsp_code);
curl_easy_cleanup(curl);