我想测试HTTP2请求/响应,但是curl只发送HTTP / 1.1。我已经安装了openssl 1.0.2n和nghttp2。在尝试安装nghttp2时,我发现openssl与正常链接不一样。在安装nghttp2
时,请参阅下面./configure的输出。配置:构建选项摘要:
Package version: 1.40.0
Library version: 33:0:19
Install prefix: /usr/local
System types:
Build: x86_64-pc-linux-gnu
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Compiler:
C compiler: gcc
CFLAGS: -g -O2
LDFLAGS:
C++ compiler: g++
CXXFLAGS: -g -O2
CXXCPP: g++ -E
C preprocessor: gcc -E
CPPFLAGS:
WARNCFLAGS:
WARNCXXFLAGS:
CXX1XCXXFLAGS:
EXTRACFLAG: -fvisibility=hidden
LIBS:
Library:
Shared: yes
Static: yes
Python:
Python: /usr/bin/python
PYTHON_VERSION:
pyexecdir:
Python-dev: no
PYTHON_CPPFLAGS:
PYTHON_LDFLAGS:
Cython:
Test:
CUnit: no (CFLAGS='' LIBS='')
Failmalloc: yes
Libs:
OpenSSL: no (CFLAGS='' LIBS='')
Libxml2: yes (CFLAGS='-I/usr/include/libxml2 ' LIBS='-lxml2 ')
Libev: no (CFLAGS='' LIBS='')
Libc-ares: no (CFLAGS='' LIBS='')
Libevent(SSL): no (CFLAGS='' LIBS='')
Jansson: no (CFLAGS='' LIBS='')
Jemalloc: no (LIBS='')
Zlib: yes (CFLAGS=' ' LIBS='-lz ')
Systemd: no (CFLAGS='' LIBS='')
Boost CPPFLAGS:
Boost LDFLAGS:
Boost::ASIO:
Boost::System:
Boost::Thread:
Third-party:
http-parser: no
MRuby: no (CFLAGS='' LIBS='')
Neverbleed: no
Features:
Applications: no
HPACK tools: no
Libnghttp2_asio:no
Examples: no
Python bindings:no
Threading: no