cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
313
Views
0
Helpful
1
Replies

CS-100 Content page matching

alcher
Level 1
Level 1

Is there a way to match the content of a webpage? Like my webpage contain "Hello World" an I want to match it with a rule containing and verify a word "Hello World". If it doesn't match(instead of "Hello World" it will reply "World Hello"), then it will make the service down instead of up.

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

you can write a script to send HTTP probe to a server and look at the response received.

Use the command 'socket waitfor' to look for the "Hello World" string.

To send the *reversed* response, you need to use a primary sorry server with a 2nd service.

This service could be a different server, or a different service on the same physical server or a redirect service to a different web page where you could have a file with the response that you want.

The CSS can't generate a response itself.

It can only get it from somewhere else.

Regards,

Gilles.