问题可能出在标题上。在配置curl_slist标头时,我认为您应该将curl_slist_append的输出分配回标头:
struct curl_slist *headers = NULL;headers = curl_slist_append(headers, "Accept: application/json");headers = curl_slist_append(headers, "Content-Type: application/json");headers = curl_slist_append(headers, "charset: utf-8");



