Here is a little sample

code:
BREAK ON
$ = SETOPTION("Explicit", "ON")

GLOBAL $False
$False = (0=1)
DIM $Status

GLOBAL $HTTPRequest
$HTTPRequest = CreateObject("winhttp.winhttprequest.5.1")
IF @ERROR <> 0
$ = Log("CreateObject [winhttp.winhttprequest.5.1] failed!")
QUIT
ENDIF

$Status = CheckURL("http://www.microsoft.com/")
? "http://www.microsoft.com/" + " --- " + $Status

$Status = CheckURL("http://infoportal.gv.hamburg.de/infoportal")
? "http://infoportal.gv.hamburg.de/infoportal" + " --- " + $Status

$Status = CheckURL("http://www.microsoft.com/")
? "http://www.microsoft.com/" + " --- " + $Status

EXIT 0

;------------------------------------------------------------------------------

FUNCTION CheckURL($URL)
$HTTPRequest.SetProxy(2, "proxy.gv.hamburg.de", "<localhost>;")
$HTTPRequest.SetTimeouts(2000, 2000, 2000, 2000)
$ = $HTTPRequest.Open("GET", $URL, $False)
$ = $HTTPRequest.Send
; Here the script dies when it timeout
$CheckURL = $HTTPRequest.Status
ENDFUNCTION

The Script dies after the .Send when it times out. How can this be catched with kix?
_________________________
Jens Kalski