Products:
News
Contact
German Website
Home Features Screenshots Videos Downloads Shop Knowledgebase


Search Knowledgebase:

 

How can I monitor the HTTP header?

User question:

> I want to monitor the HTTP header of a bookmark check. I'm not

> interested in the page itself, only in the HTTP header.

 

This can be done with a Plugin that replaces the page content with the HTTP header.

 

1. Open the bookmark properties

2. Select the Advanced tab

3. Select "Plugin" on the left side

4. Click the button "Create Private Plugin"

5. Enter the following plugin code:

 

Sub Wsw_PreprocessPage(ByRef $sMem, ByRef $sStatusMessage, ByRef $iStatusCode)
   Dim $i, $p, $s
   Dim $sLog = Bookmark_GetProperty("check_log")
 
   $sMem = HtmlTagsBegin("LOG")
 
   For $i = 0 To StringList_ItemCount($sLog) - 1
      $s = StringList_GetItem($sLog, $i)
      $p = Pos("hdr>", $s)
      If $p > 0 Then
         $s = Copy($s, $p+5, MaxInt)
         $sMem = $sMem + $s + "<br>"
      End If
   Next
 
   $sMem = $sMem + HtmlTagsEnd
End Sub

 

monitor-http-header