【发布时间】:2015-06-27 20:34:06
【问题描述】:
我想将 http/2 与 cURL 一起使用。首先,当我尝试 curl --http2 https://http2.akamai.com/ - “不支持协议”时遇到错误。我安装了 nghttp2 并重新安装了 cURL,就像它所描述的 here 一样。错误消失了,我现在可以使用curl --http2 获取数据。但是页面https://http2.akamai.com/ 告诉我“此浏览器未启用 HTTP/2”,而在 chrome 中或直接通过 nghttp2 显示“您现在正在使用 HTTP/2!”。
我正在使用 mac os x 并通过自制软件将所有依赖项安装在最新版本中。我下载的 curl 源码 (7.41) here.
【问题讨论】: