Debug HTTL url test

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
marc.sauber
Posts: 1
Joined: Mon Sep 26, 2016 2:44 am

Debug HTTL url test

Post by marc.sauber »

Dear i have an url test that return "bad" the url is accessible via the browser.
How can i do to have more infos about the problem.
Nothing in the log file more that Bad test result.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use %HttpCode%, %HttpHeader%, %HttpPage% variables (e.g. you may use Send Email action assigned to the test and template with these variables)
http://ks-soft.net/hostmon.eng/mframe.h ... .htm#macro

%HttpCode%
HTTP status code received from the server. Also this variable may return winsock error codes in case web server is not accessible (e.g. you have specified incorrect server name)

%HttpPage%
Represents contents of the monitored web page (first 32768 (32K) characters of the web page if test was performed by HostMonitor; first 2048 (2K) characters of the page if test was performed by RMA).
Variable may be empty if you setup URL test item to check HTTP response only, without checking content or CRC of the page. HTTP test returns an empty string if a HEADER request is used. It also returns an empty string when a monitored web server does not respond.

Regards
Alex
Post Reply