Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP 2.0 Over the Wire (Raw)

Are there any tools to see what is coming through the wire (Raw request and response) for HTTP 2.0? I used Fiddler and saw only HTTP 1.1 data.

I enabled HTTP 2.0 / SPDY in Chrome and visited https://http2.akamai.com to see the request and response.

like image 251
Narayanan Avatar asked Mar 11 '15 00:03

Narayanan


People also ask

Can http2 run without TLS?

To be precise, HTTP/2 (h2) requires TLS. There is also h2c, is is a non-TLS variant. Most browser vendors are choosing to not implement h2c.

How do I know if http2 is enabled?

Google Chrome offers a quick and easy way to check if HTTP/2 is supported on your SSL-enabled site. First, visit your site in Chrome over HTTPS. There you'll see your site listed with protocol h2, confirming your site works over HTTP/2.

Does http2 support keep alive?

In HTTP/2, multiple asset requests can reuse a single TCP connection. Unlike HTTP 1.1 requests that use the Keep-Alive header, the requests and response binary frames in HTTP/2 are interleaved and head-of-line blocking does not happen.

How do I change http1 to http2?

Switching to HTTP/2 is a decision to made after analysing the browser version data of your user base. The HTTP/1.1 to HTTP/2 protocol conversion happens automatically and its backward compatible. So there is nothing pretty much to be done to switch it other than ensuring your server supports it.


1 Answers

Wireshark has support for HTTP/2.0 (https://wiki.wireshark.org/HTTP2)

You can also simply check the frames using the built-in Chrome packet monitor.

Open a tab to chrome://net-internals, select 'SPDY' (or 'HTTP/2' in most recent versions) in the top left menu and click 'View live SPDY sessions' or 'View live HTTP/2 sessions'.

Whenever another tab is using a new SPDY or HTTP/2 connection, you'll be able to inspect the stream details from this tab.

like image 132
rluta Avatar answered Oct 05 '22 09:10

rluta