ACE HTTP Probe with regex

Unanswered Question
Sep 26th, 2007
User Badges:

ACE HTTP Probe with regex


Hi,


I'm trying to setup a HTTP probe with expected string rather then a code (config below). I do a GET for the page then a search for a string in the response however it's not working, as probe appears as failed.

I've tested the connection to the server by using telneting and then looking at the page displayed to make sure the string I want to match is in the response.


probe http HTTP-PROBE

port 43050

interval 30

passdetect interval 30

passdetect count 1

request method get url /action=help

open 43050

expect regex action=help


Q. Is there anything wrong with this configuration and what I'm trying to achive?


Thanks,

Pritesh

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Syed Iftekhar Ahmed Wed, 09/26/2007 - 13:47
User Badges:
  • Blue, 1500 points or more


Use "expect status" under probe config. expect regex doesnt work if expect status is not configured.


expect regex work flawlessly with static pages. It doesnt work all the time with dynamic pages.

Specially if "content-length" header is missing from Server response.


Hope it helps

Syed Iftekhar Ahmed

zblajhani Thu, 03/22/2012 - 03:09
User Badges:

Hi,


Can regex be done with this string?


ALL CHECKS OK


i get an error when configuring this string

Actions

This Discussion