Get web server info from Linux command line
Ever want to know what platform a website is running on? If there isn’t the obvious “.apsx” or other file extension, give this a try from command line (using deeblake.com as example):
type this and hit ENTER:
# telnet www.deeblake.com 80
you get this:
Trying 208.113.238.218…
Connected to www.deeblake.com (208.113.238.218).
Escape character is ‘^]’.
then type this and then hit ENTER twice:
GET / HTTP/1.1
you’ll get something like this:
HTTP/1.1 400 Bad Request
Date: Fri, 06 Mar 2009 19:43:49 GMT
Server: Apache/2.0.63 (Unix) PHP/4.4.7 mod_ssl/2.0.63 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
Content-Length: 226
Connection: close
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
Connection closed by foreign host.
Notice the “Server” line that has all of the platform specs.