Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
RE: Feature request about curlinfo option returning resolver status/error code
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dmitry Karpov via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 19 Apr 2022 17:35:56 +0000
It would return a status code the resolver returns when it performs a DNS query.
For instance, c-ares passes its status code in resolution callbacks, so this status code would be returned in the CURLINFO_RESOLVER_CODE.
So, if something goes wrong with host name resolution, this code will give a hint why the resolver failed.
-----Original Message-----
From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Sunday, April 17, 2022 2:56 AM
To: Dmitry Karpov via curl-library <curl-library_at_lists.haxx.se>
Cc: Dmitry Karpov <dkarpov_at_roku.com>
Subject: Re: Feature request about curlinfo option returning resolver status/error code
On Fri, 15 Apr 2022, Dmitry Karpov via curl-library wrote:
> So, I propose to add a new CURLINFO_RESOLVER_CODE info option, which
> will return the resolver status/code from the resolver backends that
> provide such codes (primarily c-ares).
>
> If libcurl core maintainers and community agree that it will be a
> useful feature, I can create a PR.
What values do you propose CURLINFO_RESOLVER_CODE would return ?
Date: Tue, 19 Apr 2022 17:35:56 +0000
It would return a status code the resolver returns when it performs a DNS query.
For instance, c-ares passes its status code in resolution callbacks, so this status code would be returned in the CURLINFO_RESOLVER_CODE.
So, if something goes wrong with host name resolution, this code will give a hint why the resolver failed.
-----Original Message-----
From: Daniel Stenberg <daniel_at_haxx.se>
Sent: Sunday, April 17, 2022 2:56 AM
To: Dmitry Karpov via curl-library <curl-library_at_lists.haxx.se>
Cc: Dmitry Karpov <dkarpov_at_roku.com>
Subject: Re: Feature request about curlinfo option returning resolver status/error code
On Fri, 15 Apr 2022, Dmitry Karpov via curl-library wrote:
> So, I propose to add a new CURLINFO_RESOLVER_CODE info option, which
> will return the resolver status/code from the resolver backends that
> provide such codes (primarily c-ares).
>
> If libcurl core maintainers and community agree that it will be a
> useful feature, I can create a PR.
What values do you propose CURLINFO_RESOLVER_CODE would return ?
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-04-19