Ubuntu: How do I install curl with http2 support


It seems like curl packed with ubuntu 16.04 does not have http2 support. How do I enable http2 in curl


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 install build-essential nghttp2 libnghttp2-dev libssl-dev  wget https://curl.haxx.se/download/curl-7.58.0.tar.gz  tar -xvf curl-7.58.0.tar.gz  cd curl-7.58.0  ./configure --with-nghttp2 --prefix=/usr/local --with-ssl=/usr/local/ssl  make  sudo make install  sudo ldconfig  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »