View previous topic :: View next topic |
Author |
Message |
Dennis Kane
Joined: 16 Sep 2004 Posts: 22
|
Posted: Thu Sep 16, 2004 1:13 pm Post subject: Header Check Content returns Bad Contents if hypertext tags |
|
|
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™(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 |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12818 Location: USA
|
Posted: Thu Sep 16, 2004 2:09 pm Post subject: |
|
|
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 |
|
|
Dennis Kane
Joined: 16 Sep 2004 Posts: 22
|
Posted: Thu Sep 16, 2004 5:16 pm Post subject: Actually, http test appears to test an https site... |
|
|
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 |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12818 Location: USA
|
Posted: Thu Sep 16, 2004 5:40 pm Post subject: |
|
|
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™ (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™(Release 6)</title>", use "Check contents" option.
Regards
Alex |
|
Back to top |
|
|
Dennis Kane
Joined: 16 Sep 2004 Posts: 22
|
Posted: Sun Sep 19, 2004 8:09 am Post subject: OK, that worked. Looks like I still have a bit to learn |
|
|
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 |
|
|
|