Make brew use brew installed curl instead of system curl?

To use the homebrew-installed curl set HOMEBREW_FORCE_BREWED_CURL. From man brew

If set, always use a Homebrew-installed curl(1) rather than the system version. Automatically set if the system version of curl is too old.