[Xymon] post test with httpstatus
Jeremy Laidman
jlaidman at rebel-it.com.au
Fri Feb 24 03:16:12 CET 2012
On Fri, Feb 24, 2012 at 7:07 AM, Herbert, Francois
<F.Herbert at massey.ac.nz> wrote:
> I've got a post test running which tests a login page, if the page is successful, the user gets a 302 status code in the header and no content (the user gets redirected)
> If the page is not successful the user is returned to the login page without the 302 status code.
Maybe use "nopost" and set the expected data to be ".". That way, if
any content is returned, then the login has failed. Something like
this:
nopost=login;https://loginpage.my.domain/login.php;action=login&ID=username&Password=password;.
J
More information about the Xymon
mailing list