作者回复: 这是client作最终确认所用。参见RFC文档:In HTTP/2, each endpoint is required to send a connection preface as a final confirmation of the protocol in use and to establish the initial settings for the HTTP/2 connection.
作者回复: 我刚刚还试过,可以的。我跟你说下我的重复步骤:
1、我是在Linux上执行./curl http://nghttp2.org --http2 -I,我很清楚的看到返回:
HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Upgrade: h2c
HTTP/2.0 200
2、同时tcpdump我得到报文:tcpdump -i eth0 port 80 -w h2cnghttp2.pcap。这个报文并没有SSL加密,不存在无法打开的问题。
作者回复: 设置帧参见56课