ksuralta ksuralta - 2 months ago 7
HTTP Question

Determine supported HTTP version by the web server

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

Thanks,
Kenneth

Jon Jon
Answer

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
Comments