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 - 29Python Script to Test if Website Support HTTP 2 - 88Python Script to Test if Website Support HTTP 2 - 71Python Script to Test if Website Support HTTP 2 - 86Python Script to Test if Website Support HTTP 2 - 69Python Script to Test if Website Support HTTP 2 - 74Python Script to Test if Website Support HTTP 2 - 97Python Script to Test if Website Support HTTP 2 - 52Python Script to Test if Website Support HTTP 2 - 88Python Script to Test if Website Support HTTP 2 - 97Python Script to Test if Website Support HTTP 2 - 68Python Script to Test if Website Support HTTP 2 - 53Python Script to Test if Website Support HTTP 2 - 23Python Script to Test if Website Support HTTP 2 - 67Python Script to Test if Website Support HTTP 2 - 2Python Script to Test if Website Support HTTP 2 - 6Python Script to Test if Website Support HTTP 2 - 30Python Script to Test if Website Support HTTP 2 - 14Python Script to Test if Website Support HTTP 2 - 49Python Script to Test if Website Support HTTP 2 - 45Python Script to Test if Website Support HTTP 2 - 83Python Script to Test if Website Support HTTP 2 - 71Python Script to Test if Website Support HTTP 2 - 17