Javier Garza

Installing nghttp (HTTP2 debugging tool)

Blog Post created by Javier Garza Employee on Jun 22, 2016

nghttp is a command line tool that is very useful for HTTP2 low level debugging. I decided to put a quick blog explaining how to install it since I will be referencing this tool in several HTTP2 related blogs

 

Installing on a MAC is pretty simple using the homebrew package manager (highly recommended)

 

Step 1: [Optional if you have it already] Install Homebrew

Homebrew is the package manager for Mac. If it is not installed, just paste this line in terminal.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Source: Homebrew — The missing package manager for OS X

 

Step 2: Ensure homebrew is up to date

Run the following command in the terminal:

 

brew update

Step 3: Install NGHTTP

Run the following command in the terminal:

 

brew install nghttp2

 

Step 4: [Optional] Upgrade NGHTTP

You may want to run the command below from time to time to ensure you run the latest version of nghttp.

Run the following command in the terminal:

 

brew upgrade nghttp2

 

Step 5: Use NGHTTP

Run the following command in the terminal to see all the command line options:

 

nghttp --help

Outcomes