brew uninstall --ignore-dependencies curl
wget https://gist.githubusercontent.com/mrchoke/f22177f4daa8aefda559b0891c36ce06/raw/85d811e2d21bb4d4599ad092f88e2e971f23b473/curl.rb
brew install --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
echo 'export PATH="/opt/homebrew/curl/bin:$PATH"' >> ~/.zshrc
exec zsh
or
exec bash
curl -Iv --http3 https://google.com