New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libcurl with doh show logs for windows #11864
Comments
How to reproduce? |
not have a full example, just like this: handle = curl_easy_init();
curl_easy_setopt(handle, CURLOPT_WRITEDATA, file);
curl_easy_setopt(handle, CURLOPT_PRIVATE, file);
curl_easy_setopt(handle, CURLOPT_URL, url);
curl_easy_setopt(handle, CURLOPT_REFERER, url);
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(handle, CURLOPT_AUTOREFERER, 1L);
curl_easy_setopt(handle, CURLOPT_HEADER, 0L);
curl_easy_setopt(handle, CURLOPT_DOH_URL, "https://dns.google/dns-query");
curl_easy_setopt(handle, CURLOPT_REDIR_PROTOCOLS, -1);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 2L);
curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(handle, CURLOPT_DEBUGFUNCTION, my_trace); and static
int my_trace(CURL *handle, curl_infotype type,
char *data, size_t size,
void *clientp)
{
return 0;
} there will be output into console: == Info: a DoH request is completed, 0 to go
== Info: DoH request SSL peer certificate or SSH remote key was not OK
== Info: DoH: Too small type A for www.google.com
== Info: DoH: Too small type AAAA for www.google.com
== Info: Closing connection for old version the verbose info is send into |
sorry, my mistake. add CURL_DISABLE_VERBOSE_STRINGS seems remove this message. (I must use this for my old build) |
add CURL_DISABLE_VERBOSE_STRINGS seems remove all trace information. |
I wonder if this is because the doh transfer inherits the |
When creating new transfers for doing DoH, they now inherit the debug settings from the initiating transfer, so that the application can redirect and handle the verbose output correctly even for the DoH transfers. Reported-by: calvin2021y on github Fixes #11864
When creating new transfers for doing DoH, they now inherit the debug settings from the initiating transfer, so that the application can redirect and handle the verbose output correctly even for the DoH transfers. Reported-by: calvin2021y on github Fixes curl#11864 Closes curl#11869
I did this
try use libcurl with DOH from windows, the logs always show on console and I am not sure how to turn it off.
I expected the following
I expect it not show like 8.2
curl/libcurl version
curl 8.3
operating system
windows
The text was updated successfully, but these errors were encountered: