curl / Mailing Lists / curl-library / Single Mail


Re: Identifying secure transfers

From: Daniel Stenberg <>
Date: Tue, 11 Apr 2017 15:28:19 +0200 (CEST)

On Tue, 11 Apr 2017, Samuel Hurst wrote:

>> How about curl_easy_getinfo's CURLINFO_PROTOCOL or CURLINFO_SCHEME ?
> Ah, it appears my local copy of the documentation is out of date and I was
> missing those. Is this then only possible if I use curl >7.52.0, or is there
> something else available in older versions?

For older versions, I suppose you can get CURLINFO_EFFECTIVE_URL (the final
URL used, in case redirects were followed) and check the scheme part from
that. Less elegant, but should work I think.

Received on 2017-04-11