"Brian" wrote in message
news:c5*************@ID-188416.news.uni-berlin.de...
: I'm not sure if I have selected the correct newsgroups here but is there a
: simple was to test which servers are running?
:
: I have apache and IIS installed and if I run
http://localhost I am not
sure
: which it is using or if they can both run simultaneously.
From a command-line:
telnet localhost 80
GET / HTTP/1.0
You may have to press ENTER twice and text must be UPPERCASE.
You'll get something like this plus probably the default page:
HTTP/1.1 200 OK
Date: Fri, 09 Apr 2004 10:28:45 GMT
Server: Apache
Last-Modified: Mon, 18 Aug 2003 19:59:03 GMT
ETag: "53c233-17d-3f413007"
Accept-Ranges: bytes
Content-Length: 381
Connection: close
Content-Type: text/html
or
HTTP/1.1 403 Access Forbidden
Server: Microsoft-IIS/5.0
Date: Fri, 09 Apr 2004 10:29:59 GMT
Content-Type: text/html
Content-Length: 172
If you know the page you're trying to load, you can do it like this:
GET /default.asp HTTP/1.1
Host:
www.domain.com
This will also show the default page but don't forget to hit enter twice and
domain.com is a variable.
HTH...
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp