curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. 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 Daniel himself.

Re: CURLOPT_PROTOCOLS_STR man page

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 14 Jun 2026 22:14:38 +0200 (CEST)

On Sun, 14 Jun 2026, dogma via curl-library wrote:

> The man page gives me the impression that if CURLE_UNSUPPORTED_PROTOCOL is
> returned, CURLOPT_PROTOCOLS_STR probably didn’t change anything.
>
> But I found that passing it, e.g., "http,https,unrecognized" made it
> complain about unrecognized but it did change the allowed protocols to http
> and https, as I was hoping.

You did not say which libcurl version you're using, but looking at the current
code I cannot see it working like you describe. A single bad protocol in the
input list will cause it to return error and leave the setting in its previous
state.

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2026-06-14