HTTP2 with CURL gives "Unsupported Protocol"

This one really helps me set it up properly

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

    • cd ~
    • sudo apt-get build-dep curl
    • wget http://curl.haxx.se/download/curl-7.46.0.tar.bz2
    • tar -xvjf curl-7.46.0.tar.bz2
    • cd curl-7.46.0
    • ./configure --with-nghttp2=/usr/local --with-ssl
    • make
    • sudo make install
    • sudo ldconfig (to verify) curl --http2 -k -vvv -XPOST https://ip/ https://serversforhackers.com/c/curl-with-http2-support

Apparently you are not linking with the right version of curl, at least at runtime. That's what the output libcurl/7.38.0 means. Mine has a higher version number there. Try

LD_LIBRARY_PATH=/usr/local/lib curl <whatever> 

as your command. Or just to be sure:

ldd `which curl` 

and pay attention to the dependencies that appear listed.

Tags:

Curl

Http2