I'm using
JnLlnds code. With Firefox 62.0.3, I get sometimes two error messages
1.
An error occurred in the secure channel support
followed by
2.
The data necessary to complete this operation is not yet available.
The affected lines are
objWebRequest.Send() ; and
return (objWebRequest.StatusText() = "OK" ? objWebRequest.ResponseText() : "") in function
Url2Var(strUrl):
Code: Select all
;------------------------------------------------------------
Url2Var(strUrl)
;------------------------------------------------------------
{
objWebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
/*
if (A_LastError)
; an error occurred during ComObjCreate (A_LastError probably is E_UNEXPECTED = -2147418113 #0x8000FFFFL)
BUT DO NOT ABORT because the following commands will be executed even if an error occurred in ComObjCreate (!)
*/
objWebRequest.Open("GET", strUrl)
objWebRequest.Send() ; <== ERROR 1
return (objWebRequest.StatusText() = "OK" ? objWebRequest.ResponseText() : "") ; <== ERROR 2
}
;------------------------------------------------------------
That happens e. g. with GitHub pages, like
GitHub - nshalabi/SysmonTools: Utilities for Sysmon.
I assume that's an certificate validation issue? I tried
Sleep instructions without success.
Many thanks for all your efforts and any hints
hotkeyguy