While working on the HTTP/2 test tool, I tried many options and found Python was fastest, more accurate, and lightweight. If you are developing something in-house to test if the site supports HTTP/2 or not, you may use the following code. It works on Python 3.x. To run the program, you can use the following syntax. Ex You see the few lines of code to achieve. If you are looking to master in Python, then check out this Udemy course. And, to take advantage of H2 protocol, refer the following implementation guide.

Apache & Nginx Tomcat Litespeed Python Script to Test if Website Support HTTP 2 - 21Python Script to Test if Website Support HTTP 2 - 85Python Script to Test if Website Support HTTP 2 - 16Python Script to Test if Website Support HTTP 2 - 50Python Script to Test if Website Support HTTP 2 - 69Python Script to Test if Website Support HTTP 2 - 94