ksuralta ksuralta - 1 year ago 83
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?


Jon Jon
Answer Source

You could issue a:

 curl --head www.test.com

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


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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download