Hello
Opertation Sys: Win7 x64
Problem: Connecting to webs using TLS 1.1 +
Description: WinHttp.WinHttpRequest.5.1 using TLS 1.0 by default, i need higher version to connect into some webs.
Dim $oHttp = ObjCreate("WinHTTP.WinHTTPRequest.5.1")
$oHttp.open ("GET", "https://howsmyssl.com/a/check", False)
$oHttp.Option(9) = 128 ; 128 - TLS 1.0, 512 - TLS 1.1, 2048 - TLS 1.2, 2056 - TLS 1.1 & TLS 1.2
$oHttp.Send
ConsoleWrite($oHttp.responseText & @CRLF) ; at end of the respond you can check your TLS version. Mine is: {"tls_version":"TLS 1.0","rating":"Bad"}
Error: $oHttp.Option works only with parameter 128 (TLS 1.0) other values make error {Bad parameter}
Additional: I've done this tutorial about enabling TLS in registry: <link>
Thanks for support.
Ascer