Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
wget https://raw.githubusercontent.com/cloudflare/homebrew-cloudflare/master/curl.rb
# Install curl via that script from the latest git repos
# brew install --HEAD -s curl.rb
brew install --formula --HEAD -s curl.rb
# Tell your cli to use the curl version just installed (if you're using zsh, othwerise you might need `~/.bashrc`)
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc
# Reload your config
source ~/.zshrc
# Double check it's using the right curl
which curl # Should output "/usr/local/opt/curl/bin/curl"
# Double check http3
$ curl --version | grep HTTP3
Features: alt-svc AsynchDNS brotli HTTP2 HTTP3 IDN IPv6 Largefile libz MultiSSL NTLM NTLM_WB SSL UnixSockets zstd
# Try curl on any HTTP/3 enabled sites.
curl --http3 https://blog.cloudflare.com -I
On ARM64 macOS the path is different: