Home > Uncategorized > Add HTTP2 Support to cURL

Install nghttp2
yum -y groupinstall "Development Tools"
yum -y install libev libev-devel zlib zlib-devel openssl openssl-devel git

cd /var/tmp
git clone https://github.com/tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf
./configure
make
make install

Set library search path
echo '/usr/local/lib' > /etc/ld.so.conf.d/custom-libs.conf
ldconfig
ldconfig -p| grep libnghttp2

Install cURL
cd /var/tmp
git clone https://github.com/bagder/curl.git
cd curl
./buildconf
./configure --with-nghttp2=/usr/local
make
make install

Check cURL Feature
./src/curl -V

Check HTTP/2 response
./src/curl --http2 -v

Reference:
http://takeshiyako.blogspot.hk/2015/09/curl-http2.html
https://serversforhackers.com/video/curl-with-http2-support



Flag Counter