Subversion Repositories DevTools

Rev

Rev 6645 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6645 Rev 7260
Line 55... Line 55...
55
    Call remExecTest
55
    Call remExecTest
56
ElseIf (parOpr = "pkgAccessTest") Then
56
ElseIf (parOpr = "pkgAccessTest") Then
57
    Call pkgAccessTest
57
    Call pkgAccessTest
58
ElseIf (parOpr = "lxrAccessTest") Then
58
ElseIf (parOpr = "lxrAccessTest") Then
59
    Call lxrAccessTest
59
    Call lxrAccessTest
-
 
60
ElseIf (parOpr = "abtLogAccess") Then
-
 
61
    Call abtLogAccess
60
 
62
 
61
Else
63
Else
62
    oJSON.data("emsgSummary") = "Unknown operation requested:" & parOpr
64
    oJSON.data("emsgSummary") = "Unknown operation requested:" & parOpr
63
End If
65
End If
64
 
66
 
Line 272... Line 274...
272
        result = 1
274
        result = 1
273
        oJSON.data("emsgSummary") = "LXR Server not responding"
275
        oJSON.data("emsgSummary") = "LXR Server not responding"
274
    End If
276
    End If
275
End Sub
277
End Sub
276
 
278
 
-
 
279
'-------------------------------------------------
-
 
280
' Function:    abtLogAccess
-
 
281
' Description: Test dpkg_archive access - can we map it
-
 
282
'
-
 
283
Sub abtLogAccess
-
 
284
 
-
 
285
    Dim oXMLHTTP
-
 
286
    Dim testUrl
-
 
287
    Dim testAccess
-
 
288
    testAccess = False
-
 
289
 
-
 
290
    testUrl = HTTP_PKG_ARCHIVE & "/cgi-bin/getBuildLogs.pl"
-
 
291
    Set oXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP.3.0")
-
 
292
 
-
 
293
    ' Use error handling in case dpkg_archive is not available
-
 
294
    ' Use HEAD to test existence
-
 
295
    Err.Clear
-
 
296
    On Error Resume Next
-
 
297
    oXMLHTTP.Open "HEAD", testUrl, False
-
 
298
    oXMLHTTP.Send
-
 
299
 
-
 
300
    ' Do not combine the next two If statments - it will not work
-
 
301
    If Err.Number = 0  Then
-
 
302
        If oXMLHTTP.Status = 200 Then 
-
 
303
            testAccess = True
-
 
304
        End If
-
 
305
    End If
-
 
306
    On Error Goto 0
-
 
307
 
-
 
308
    If testAccess Then
-
 
309
        result = 0
-
 
310
    Else
-
 
311
        result = 1
-
 
312
        oJSON.data("emsgSummary") = "ABTLOG Server not responding"
-
 
313
    End If
-
 
314
End Sub
-
 
315
 
277
%>
316
%>