Skip to content

Instantly share code, notes, and snippets.

@l1x
Last active January 28, 2017 23:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save l1x/eac1307b4d5f49856043b18ff86b43b7 to your computer and use it in GitHub Desktop.
Curl Http2
  • install cURL with nghttp2 support
brew install curl --with-nghttp2
  • link the formula to replace the system cURL
brew link curl --force
  • now reload the shell and test an HTTP/2 request passing the --http2 flag
curl -I --http2 https://www.cloudflare.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment