-
Couldn't load subscription status.
- Fork 233
How to capture HTTP2 packages using Wireshark
Bing Han edited this page Mar 29, 2018
·
2 revisions
gRPC is based on HTTP/2. So we have to analyze packages to solve some difficult problems related to the protocol. This wiki introduces how to do this using Wireshark because capturing packages of HTTP/2 is a little different with HTTP/TCP.
HTTP/2 via TLS is not covered in this wiki
- Download Wireshark of recent versions.
- Add your port to HTTP protocols:
- Open
Preferences - Select
Protocols>HTTP. HTTP2 works too, but HTTP is enough - Add your HTTP/2 port like(50051) to
TCP ports - Click
OKto save the config
- Open
- Select(Double click) your network interfaces like
Loopback: lo0(local) - Input
http2in the filter - Run your gRPC applications
- Stop(Capture>Stop). Then you can analyze the packages or save to a file for using later.