curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Identifying secure transfers

From: Daniel Stenberg <daniel_at_haxx.se>
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.

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