Chrome: Obtain HTTP/2 Log from net-internals
You can use the Fiddler Core C# API
Fiddler.FiddlerApplication.AfterSessionComplete += FiddlerApplication_AfterSessionComplete;Fiddler.FiddlerApplication.Startup(8888, FiddlerCoreStartupFlags.Default);Fiddler.FiddlerApplication.AfterSessionComplete += delegate(Fiddler.Session oS) { Monitor.Enter(oAllSessions); oAllSessions.Add(oS); Monitor.Exit(oAllSessions); };Fiddler.FiddlerApplication.Shutdown();
Check the official documentation, you need lots more code, but in the end, you will have all you need.
It is possible to start chrome with --log-net-log=output.json
.
However, currently there is a bug in chromedriver that truncates the log.https://bugs.chromium.org/p/chromedriver/issues/detail?id=1688#c1