incorrect http protocol shown by chrome developer tools?
<p>I am checking the http protcol in use for this site <a href="http://www.dlf.in/" rel="nofollow">http://www.dlf.in/</a>
Chrome developer tools shows it to be http/1.1 as in the image below.</p>

<p>However the command line tool <a href="https://www.npmjs.com/package/is-http2-cli" rel="nofollow">is-http2</a> or alpn in python as seems to indicate the http/1.1 is not available. And only http1 is available. What's going on here?</p>

<p>I am doing the ALPN negotiation in python as follows (openssl version : OpenSSL 1.0.2h and python version 3.5.1)</p>

<pre><code>import ssl
import socket

port = 443
domain = 'www.dlf.in'

ctx = ssl.create_default_context()
ctx.set_alpn_protocols(['h2', 'spdy/3.1', 'spdy/3', 'spdy/2', 'http/1.1'])


conn = ctx.wrap_socket(socket.socket(socket.AF_INET, socket.SOCK_STREAM),
        server_hostname=domain)

conn.connect((domain, port))
print(conn.selected_alpn_protocol())
</code></pre>

<p><a href="http://i.stack.imgur.com/OQbyi.png" rel="nofollow"><img src="http://i.stack.imgur.com/OQbyi.png" alt="network tab of chrome develper tools for dlf.in"></a></p>

<p>Using <code>telnet</code> and <code>HTTPie</code> to send HTTP requests (both 1.0 and 1.1), the web server responds with:</p>

<blockquote>
  <p>HTTP/1.1 200 OK</p>
</blockquote>

<p>I tried it with 2.0 and got:</p>

<blockquote>
  <p>HTTP/1.1 505 HTTP Version Not Supported</p>
</blockquote>

python google-chrome http2 http-1.1 alpn