URL Test Bad Contents but home page source says otherwise?

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
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

URL Test Bad Contents but home page source says otherwise?

Post by xcentric »

An interesting issue fell into my lap today.

I have a URL test setup on a website.
The test consists of checking contents and should contain a string. This has been working for months. All of a sudden the test reports "bad contents". What is interesting is that "now" no matter what string I enter it still says "Bad contents". Even a word as simple as "the". If I uncheck "Check contents" the test works fine. Obviously checking the port. The website is live and I checked the home page source from the browser for all words attempted. I even tried using different agents with the same results. Stuck here.

Now I am no web developer but I suspect that the static web page has been encoded in a way that the HM "browser" agent does not understand which is why it comes back bad contents on everything.

Can someone please check with their own url test to [URL REMOVED BY ADMIN] and report back findings? Check for contents should contain string. Use whatever you find in the home page source.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

This URL immediately returns zipped file.
May be some virus.

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

I just found out from the developers that to cut down on bandwidth the site was gzipped when I started getting bad contents. What can be done from here? Does the agent support gzipped pages? So to be clear there is no virus activity.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

No, HostMonitor does not unzip HTTP data

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

Much appreciated. At least now I know the reason.

Can this be a feature request? Or is this in the roadmap somewhere.

For now I have to rely on port 80 responding. Not a good way to tell if a site is being served but it will have to do.

Thanks for removing the link. Next time I will send it to support email.
rasc
Posts: 95
Joined: Sun Oct 11, 2009 8:25 am

Post by rasc »

@KS: I didn't check that but I guess HM does not say it accepted gzipped content in the headers of such an request. Right?

@xcentric: If so (see above) you should have a word with your web developers that they have to stop violating standards (gzipped content is only to be presented to clients that announce to accept it!!).
It's always the same with such people that don't care about standards: They save some work (often not much) at the cost of many having additional trouble and work.

Regards, rasc
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I didn't check that but I guess HM does not say it accepted gzipped content in the headers of such an request. Right
No, HostMonitor does not send such Accept-Encoding header and does not expect gzipped data.
I have added task into "to do" list. Low priority.

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

@rasc - I appreciate the info.
@Alex - Thanks for adding to to to todo. :D
Post Reply