curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to check libcurl supported protocols in Windows?

From: Geoff Beier <geoff_at_redhoundsoftware.com>
Date: Tue, 17 Apr 2018 09:02:02 -0400

On Tue, Apr 17, 2018 at 2:25 AM, Swamy J-S <swamy.j-s_at_in.abb.com> wrote:

> Is there a way to check which protocols are supported by libcurl on
> Windows ?
>
> If so, How to check?
>
>
>
I haven't tried it on Windows, but I expect that the curl_version_info()
function works there, and that the protocols member of the
curl_version_info_data * that it returns is populated. See the
documentation here:

https://curl.haxx.se/libcurl/c/curl_version_info.html

for details about the function and the structure.

Look at the function tool_version_info() in the source file tool_help.c
(for the curl command line tool):

https://github.com/curl/curl/blob/master/src/tool_help.c#L531

for an example of how to read the field and print the values.

HTH,

Geoff

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-04-17