Optimus1 Asked:2022-05-06 00:28:48 +0000 UTC2022-05-06 00:28:48 +0000 UTC 2022-05-06 00:28:48 +0000 UTC libcurl - 是否可以查看请求标头? 772 请告诉我,是否有可能在 Libcurl 中以某种方式查看请求服务器时生成的标头? c 1 个回答 Voted Best Answer Eugene X 2022-05-06T00:31:57Z2022-05-06T00:31:57Z 现在手头没有卷曲,但你需要做的是通过。 curl_easy_setopt(curl_handle, CURLOPT_DEBUGFUNCTION, my_trace_funtion); curl_easy_setopt(curl_handle, CURLOPT_DEBUGDATA, &config); https://curl.se/libcurl/c/curl_easy_setopt.html https://curl.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html
现在手头没有卷曲,但你需要做的是通过。