Forum Moderators: phranque
I'm not sure if this would be helpful or not, but I sometimes use the windows port of wget to check pages, like so:
wget [website.com...] -o wget.log --server-response --spider
Legend:
-o says to log the output to wget.log
--server-response says to log the actual numeric response
--spider says not to actually download anything
--------
The log of a working site / page, looks like this:
--00:36:44-- [website.com...]
=> `page.htm'
Connecting to website.com:80... connected!
HTTP request sent, awaiting response... 200 OK
2 Date: Fri, 15 Aug 2003 07:39:57 GMT
3 Server: Apache/1.3.26 (Unix) mod_mhp mod_mhp_log mod_virtcgi frontPage/5.0 mod_status_mhp
4 Last-Modified: Wed, 13 Aug 2003 15:53:54 GMT
5 ETag: "e0a786-2c71-3f3a5f12"
6 Accept-Ranges: bytes
7 Content-Length: 11377
8 Keep-Alive: timeout=5, max=30
9 Connection: Keep-Alive
10 Content-Type: text/html
11
200 OK
The log of a 404 site / page looks like this:
--00:42:46-- [website.com...]
=> `brokepage.htm'
Connecting to website.com:80... connected!
HTTP request sent, awaiting response... 404 Not Found
2 Date: Fri, 15 Aug 2003 07:45:58 GMT
3 Server: Apache/1.3.26 (Unix) mod_mhp mod_mhp_log mod_virtcgi frontPage/5.0 mod_status_mhp
4 Keep-Alive: timeout=5, max=30
5 Connection: Keep-Alive
6 Content-Type: text/html; charset=iso-8859-1
7
00:42:46 ERROR 404: Not Found.
--------
If you have Perl installed you could probably write a script to grep the fourth line for the numerics and take various actions based on the different server responses.
HTH
Jordan
I am currently using a program called sMonitor but since it doesn't actually test for a full page load, it doesn't help me when someone messes with the server (like removing a module without telling me prior, argh)
[edited by: DaveAtIFG at 4:35 am (utc) on Sep. 28, 2003]
[edit reason] DeLinked [/edit]