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: Wed, 17 Jun 2026 09:30:45 +0200 (CEST)

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

> I specify "http,https,file", thinking to be more secure when I’m not doing
> anything useful with the other schemes anyway
> (https://curl.se/libcurl/security.html showing how nasty a protocol such as
> scp can be). A user configures libcurl to disable "http". The call fails and
> I haven’t accomplished anything.

If you set the protocols you need your application to use, then a failure
means that you can't continue!

> I guess I have to consult the protocol list out of curl_version_info() as I
> construct my string?

If you really want to adjust to crazy custom libcurl builds, yes.

-- 
  / 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-17