|
View previous topic :: View next topic |
Author |
Message |
RolfGraber
Joined: 27 Jun 2012 Posts: 7
|
Posted: Wed Jun 27, 2012 3:01 am Post subject: http status codes |
|
|
Hi
I try to setup a test which analyzes the http stauts code returned from a website. Assuming the http-test is the correct one. But where do I enter the condition? Something like "%HttpCode%=200".
I want the test to alert me if the page returnes anything else than code 200.
the header is like follow
Quote: |
<html>
<head>
<title>DaX Check Servlet</title>
<style type="text/css"></style>
</head>
<body>
<h1>DaX Check Servlet</h1>
<h3>HTTP status code: 200</h3>
<b>Current check level: 0</b></br>
<i>Adjust check level by setting HTTP GET parameter 'level' to {0,1,2} (0: FAST, 1:MEDIUM, 2:DETAIL)</i>
</br></br>
|
Can you show me the correct way including an example?
thanks |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Jun 27, 2012 5:10 am Post subject: |
|
|
Actually HTTP and URL Request test methods return "Host is alive" status only if HTTP code returned by the server is 200, unless you select additional options like "HTTP/HTTPS: Code 302 (redirect) is Ok" for URL Request test.
Also, you may specify your condition ('%HttpCode%'=='200'):
1. in Test properties dialog:
set "Use warning status if" option to:
'%HttpCode%'<>'200'
2. in Action profile, assigned to HTTP or URL Request test:
using Condition to start action: Advanced mode with expression like the following:
('%HttpCode%'<>'201') AND (%FailureIteration%==1)
Please check the manual or visit our web site for more information at:
"Use warning status if" option: http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#warningstatus
Advanced mode actions: http://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#advancedaction |
|
Back to top |
|
|
RolfGraber
Joined: 27 Jun 2012 Posts: 7
|
Posted: Wed Jun 27, 2012 6:14 am Post subject: |
|
|
Thank for your help.
It's OK now.
best regards |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Jun 27, 2012 7:22 am Post subject: |
|
|
You are welcome. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|