Skip to content

Instantly share code, notes, and snippets.

@ChengLong
Created March 12, 2017 09:43
Show Gist options
  • Save ChengLong/df9f55697e206f2ba828e742ea62b182 to your computer and use it in GitHub Desktop.
Save ChengLong/df9f55697e206f2ba828e742ea62b182 to your computer and use it in GitHub Desktop.
Enable cURL with HTTP/2 on Mac

This is directly taken from this post

  • Install cURL with nghttp2 support brew install curl --with-nghttp2
  • Link the formula to replace the system cURL brew link curl --force
  • Reload shell
  • Test an HTTP/2 request passing the --http2 flag curl -I --http2 https://www.google.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment