HttpSetSSLVersion

This function sets the CURLOPT_SSLVERSION option to the specified value, which represents the preferred TLS/SSL protocol version to use when attempting to connect to the server.
Note: If a call to HttpPost results in an SSL connect error (007 return status), and you suspect that the server does not support TLS negotiation, try adding the following call after calling NetInit and before calling HttpPost.
call "HttpSetSSLVersion" using "SSLv3" giving response-status.

Usage

CALL "HttpSetSSLVersion" USING
         version-string
         GIVING
         response-status.

Parameters

login-options An alphanumeric item or literal specifying the SSL version to use. Valid values include:
  • SSLv2
  • SSLv3
  • TLSv1
  • TLSv1_0
  • TLSv1_1
  • TLSv1_2

Trailing spaces are removed from the value and then the value is zero terminated.

Note: If you specify a value other than one of these valid values, the default value of CURL_SSLVERSION_DEFAULT is used, which causes the client to attempt to determine the remote TLS/SSL protocol version.
response-status A status code that, if nonzero, indicates the request encountered an error. In this case, the string representation of the error may be obtained by calling NetGetError.