KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Header Check Content returns Bad Contents if hypertext tags

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Dennis Kane



Joined: 16 Sep 2004
Posts: 22

PostPosted: Thu Sep 16, 2004 1:13 pm    Post subject: Header Check Content returns Bad Contents if hypertext tags Reply with quote

Could not find any reference in FAQ's or past issues,

Header Check Content returns Bad Contents if hypertext tags are included in the text to be checked.

Specifically, doing an HTTP Test to URL https://blackboard.byu.edu with Download nested frames and Download images checked, and Check header checked and set at "should contain", with the string <title>Blackboard Learning Systems&trade;(Release 6)</title>
as the text to check.

When I select Test, it returns Test status: Bad contents, Error code: 0,

The help manual indicates hypertext tags can be included.

What am I missing?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Sep 16, 2004 2:09 pm    Post subject: Reply with quote

Actually HTTP test doesn't work with HTTPS protocol.
URL test method support HTTPS protocol (it can check contents but not header)

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Dennis Kane



Joined: 16 Sep 2004
Posts: 22

PostPosted: Thu Sep 16, 2004 5:16 pm    Post subject: Actually, http test appears to test an https site... Reply with quote

I have set up the before mentioned site as an HTTP Test and am measuring response time with a GET and viewing it in the Log Analyzer.

Is it possible it is somehow not really testing the site and telling me it is?

Could it be testing another HPPT site?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Sep 16, 2004 5:40 pm    Post subject: Reply with quote

Looks like this site (blackboard.byu.edu) supports both protocols depending on request.

Quote:
Header Check Content returns Bad Contents if hypertext tags are included in the text to be checked.


HostMonitor works correctly. It sets "Bad contents" status because HTTP header returned by server does not contain string that you have specified.
Header:
Quote:

HTTP/1.1 200 OK
Date: Thu, 16 Sep 2004 23:32:27 GMT
Server: Apache/1.3.29 (Unix) mod_perl/1.29
Set-cookie: session_id=@@1f84efe2c36cd90e5f3e657b8d68c626; path=/;
Pragma: no-cache
Cache-Control: no-store
X-Blackboard-product: Blackboard Learning System&trade; (Release 6) 6.1.5.5
Content-Type: text/html
X-Cache: MISS from blackboard.byu.edu
Connection: close


However I found mistake in manual:
Check header
HostMonitor can search for a string (or several strings) in the HTML header (received from a server) and start alert actions when the string exists (or doesn't exist) in the header. Define string(s) and condition to alert using following options:


You should read as
Check header
HostMonitor can search for a string (or several strings) in the
HTTP header (received from a server) and start alert actions when the string exists (or doesn't exist) in the header. Define string(s) and condition to alert using following options:

So, if you want to check for "<title>Blackboard Learning Systems&trade;(Release 6)</title>", use "Check contents" option.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Dennis Kane



Joined: 16 Sep 2004
Posts: 22

PostPosted: Sun Sep 19, 2004 8:09 am    Post subject: OK, that worked. Looks like I still have a bit to learn Reply with quote

I checked the header using IP-Tools HTTP, as it looked like that was where you got your header content from. I was of the opinion that the content I was checking was that returned when I used View, Source in IE. That is why I thought it did not work.

Thanks for the help.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index