It seems like curl packed with ubuntu 16.04 does not have http2 support. How do I enable http2 in curl
Asked
Active
Viewed 2.6k times
1 Answers
46
As of now (Jan 2018). You will have to install curl from source to get http2 support. You can do that using the following commands
sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
wget https://curl.haxx.se/download/curl-7.63.0.tar.gz
tar xzf curl-7.63.0.tar.gz
cd curl-7.63.0
./configure --with-nghttp2 --prefix=/usr/local --with-ssl
make && sudo make install
sudo ldconfig