alteon health script content

alteon health script content

Post by Reinhold J » Fri, 02 Sep 2005 02:50:39


hi ng,

is it possible to make a health check of the content or return of a
website ?

i want to check mysite.html:

<html>
<body>
healthcheck_ok
</body>
</html>

the site returns with
HTTP/1.1 200 OK
"the normal header and so on ..."
healthcheck_ok

i just want to check for "healtcheck_ok" with

open 80
send "GET /mysite.html HTTP/1.0\\r\\n\\r\\n"
expect "healthcheck_ok"
close

but it is not working. when i check "HTTP/1.1 200 OK" it works. is there
no way to check a word of the site content with an alteon ?

regards Reinhold
 
 
 

alteon health script content

Post by anglerp » Thu, 08 Sep 2005 03:14:52

That should work. It is case sensitvive so keep that in mind.

Angler

 
 
 

alteon health script content

Post by Reinhold J » Thu, 08 Sep 2005 04:26:42


XXXX@XXXXX.COM schrieb:

thanx for answer,

but it is not working. i now know that this site is generated from a
script. maybe therefore ...

regards Reinhold