|
@@ -53,7 +53,7 @@ std::string Network::post_request(const std::string& url, const std::string& pos
|
|
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); // 连接超时 10 秒
|
|
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); // 连接超时 10 秒
|
|
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); // 支持重定向
|
|
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); // 支持重定向
|
|
|
#ifdef DEBUG_LOG
|
|
#ifdef DEBUG_LOG
|
|
|
- curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // 禁用 SSL 验证(调试用,生产慎用)
|
|
|
|
|
|
|
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); // 禁用 SSL 验证(调试用生产慎用!)
|
|
|
#endif
|
|
#endif
|
|
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Angel/1.0 (Android)"); // 设置 User-Agent
|
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "Angel/1.0 (Android)"); // 设置 User-Agent
|
|
|
|
|
|