Application fails to call WinHTTP with HTTPS
The same application that calls WinHTTP successfully with HTTP fails to work with HTTPS even if zero is returned (in ws-res on the example below):
INVOKE ws-winhttp "Open" USING z"POST" WS-CALL-HOST *> containing URL with HTTPS ws-boolfalse RETURNING ws-res INVOKE ws-winhttp "Send" USING ws-vartext RETURNING ws-res
There is no code change required.
As explained in the following Microsoft link, an update for Windows and setting up a registry key are required:
The program should work fine after adding DefaultSecureProtocols with the DWORD value of A00 in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp