HTTP request "Test status: Bad, Error Code: 0, Error ms

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
afitzpatrick
Posts: 2
Joined: Tue Jun 13, 2006 5:02 am

HTTP request "Test status: Bad, Error Code: 0, Error ms

Post by afitzpatrick »

I'm writing some HTTP tests that are testing a login on our site. However, ~80% of the time, according to the HM statistics, the tests fail even though the site is working correctly.

The HTTP test POSTs to a page with a redirect (which also issues a cookie). I've enabled redirects and cookies in the HM test.

When I bring up the "advanced" page for the HTTP test and use the "Test" button, sometime it'll output the page's headers. However, 80% of the time it just says "Test status: Bad, Error code: 0, Error msg:".

This isn't much use at all... as it could mean anything. There's a 500 being served? No page data? Bad URL? A timeout? I've no idea.

Isn't there any way to find out why the results are bad? It would be great if I could get a dump of the headers and HTML from the request. How could I get this information from HM, please?

I've tried this with version 6 and 5.92 of HM.

Thanks!
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: HTTP request "Test status: Bad, Error Code: 0, Erro

Post by KS-Soft Europe »

afitzpatrick wrote:When I bring up the "advanced" page for the HTTP test and use the "Test" button, sometime it'll output the page's headers. However, 80% of the time it just says "Test status: Bad, Error code: 0, Error msg:".
Are you getting empty "Error msg" string? Strange. Do you use "check content" or "check header" options? Have you enabled "Set "Bad" status when total download time is longer than NN msec" option? Could you disable all foregoing options and try to perform test again?
afitzpatrick wrote:This isn't much use at all... as it could mean anything. There's a 500 being served? No page data? Bad URL? A timeout? I've no idea.
Isn't there any way to find out why the results are bad? It would be great if I could get a dump of the headers and HTML from the request. How could I get this information from HM, please?
I think you should parse your web server log files to find it out. If you have recieved empty "Error msg" string, the only way is to parse web server log files.

Regards,
Max
afitzpatrick
Posts: 2
Joined: Tue Jun 13, 2006 5:02 am

Post by afitzpatrick »

Hi Max

Thanks for your prompt reply.

"check content", "check header" and "set bad when download time > X" are all turned off until I can get the simple stuff working in HM.

Looking at the web server logs HM gets 302ed to a "your browser won't accept cookies" page after its POST. HM gets this page successfully.

Most of the time, though, HM just gets the 302 but doesn't seem to follow it, even though the "Follow redirect" option is set. So three questions now...

* Why isn't HM accepting per-session cookies? ("Allow per-session cookies" is set)
* Why isn't HM following 302s? ("Follow redirects" is set)
* How can I debug this? I don't understand how or why it would ever be valid to return an empty error message to users...
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

"Bad" status means HostMonitor gets responce from web server but responce contains some HTTP error (e.g. 404 page not found or 302).
If "follow redirect" option is enabled then HTTP responce 302 should not lead to "Bad" status...
May we access your web site for testing?

Regards
Alex
Post Reply