04-23-2007 11:12 AM
Is it possible to script a HTTP keepalive to parse the response for a specific word?
Solved! Go to Solution.
04-23-2007 02:32 PM
Dave~
It parses the entire page to search for string.
More details available at
Syed
04-23-2007 01:18 PM
There is a script for this on CSS
ap-kal-httpcheck.
The script connects to a webserver on port 80 by default.It performs a GET on the specified page. If the WebString is returned, the service stays up. If anything fails, the service is marked down.
The syntax for this KAL is:
ap-kal-httpcheck \'WebSiteIP WebPage WebString [Port]\'
for e.g.
service web1
ip add 10.10.10.1
keepalive frequency 10
Keepalive type script ap-kal-httpcheck ?10.10.10.1 /index.html teststring?
active
Hope it helps
Syed
04-23-2007 02:03 PM
Syed,
Does it have to match everything that is returned, or can it be defined to match on a single word within the 1st 25kbytes.
Thanks, Dave
04-23-2007 02:32 PM
Dave~
It parses the entire page to search for string.
More details available at
Syed
04-23-2007 03:29 PM
Thanks for the link. Unfortunately it only checks 10KB, but there must be a way to modify it.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide