curl_easy_setopt( curl, CURLOPT_VERBOSE, 1L ); //在屏幕打印请求连接过程和返回http数据 curl_easy_setopt( curl, CURLOPT_TIMEOUT, );//接收数据时超时设置,如果10秒内数据未接收完,直接退出 curl_easy_setopt(curl, CURLOPT_AUTOREFERER, ); // 以下3个为重定向设置 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION,