brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: curl -V shows which protocols and features your build supports

Curl
~/tips/tip-curl-version-features-list

curl -V | grep -E '^(Protocols|Features)'

Lists the protocols and features compiled into the curl you are running.

A flag that works on one machine and errors on another is often a different curl build.

curl -V | grep -E '^(Protocols|Features)'

Capital -V prints the curl and libcurl versions, the TLS library, and two lists: protocols such as ftp and sftp, and features such as HTTP2, HTTP3, brotli and zstd. When an option is rejected with “the installed libcurl version doesn’t support this”, the list shows why. Distro packages, Homebrew and the curl inside a Docker image can differ a lot. The first line also names the TLS library, such as OpenSSL or GnuTLS, which matters for flags like --tlsv1.3.

Further reading: curl manual

More Curl tips curl --trace-ascii – https://example.com/ Retry-After: 120 curl -fsS --fail-early \ url = "https://example.com/data/latest.json" curl -4 -s -o /dev/null -w '%{remote_ip} %{http_code}\n' https://example.com/ All Curl tips (71) All topics

Link