According to the MSDN documentation WinHTTPRequest has four event handlers which should be accessible by specifying an event handler prefix. Unfortunately, doing so causes Windows Scripting Host to crash.
The following code crashes Windows Scripting Host:
Set oHTTP = WScript.CreateObject( "WinHttp.WinHttpRequest.5.1", "oHTTP_" )
This code works just fine:
Set oHTTP = WScript.CreateObject( "WinHttp.WinHttpRequest.5.1" )
Any thoughts as to why?
It's not part of the specification in any way. Wishful programming rarely works.
If you want to make up your own wishful specifications, see if you can add your own parameters to this one.
From Help for GetRef