CSS HTTP Keepalive Response

Answered Question
Apr 23rd, 2007

Is it possible to script a HTTP keepalive to parse the response for a specific word?

I have this problem too.
0 votes
Correct Answer by Syed Iftekhar Ahmed about 9 years 6 months ago


It parses the entire page to search for string.

More details available at



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Syed Iftekhar Ahmed Mon, 04/23/2007 - 13:18

There is a script for this on CSS


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

keepalive frequency 10

Keepalive type script ap-kal-httpcheck ? /index.html teststring?


Hope it helps


dgahm Mon, 04/23/2007 - 14:03


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

dgahm Mon, 04/23/2007 - 15:29

Thanks for the link. Unfortunately it only checks 10KB, but there must be a way to modify it.


This Discussion