Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine supported HTTP version by the web server

Tags:

http

Is there a way to check whether a web server supports HTTP 1.0 or 1.1? If so, how is this done?

like image 977
ksuralta Avatar asked Jul 31 '09 06:07

ksuralta


People also ask

How do I know if my server supports HTTP 2?

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.

How does a browser know it can request to switch from HTTP 1.1 to HTTP 2?

The chrome browser will only send a HTTP/1.1 Request to the website. As the website is HTTP/2 Enabled, it will send a message to the browser that it supports HTTP/2. The server upgrades the communication protocol between it and the server to HTTP/2 if it finds the browser capable of recognizing HTTP/2.

Which HTTP version is used in chrome?

In chrome all static files are h2, but REST calls are HTTP/1.1.


1 Answers

You could issue a:

 curl --head www.test.com 

that will print out the HTTP version in the first line of the output...

e.g.

HTTP/1.1 200 OK Content-Length: 28925 Content-Type: text/html Last-Modified: Fri, 26 Jun 2009 16:08:04 GMT Accept-Ranges: bytes ETag: "a41944978f6c91:0" Server: Microsoft-IIS/7.0 X-Powered-By: ASP.NET Date: Fri, 31 Jul 2009 06:13:25 GMT 
like image 168
Jon Avatar answered Sep 20 '22 21:09

Jon