Applies to
HTTPClient and RestClient objects
Description
The SecureProtocol property specifies the secure protocol. Values are:
0 – All secure protocols. This is the default value. It will detect and use the secure protocol in the following order: TLS 1.2, TLS 1.1, SSL 2.0/SSL 3.0/TLS 1.0.
1 – SSL 2
2 – SSL 3
3 – TLS 1.0
4 – TLS 1.1
5 – TLS 1.2
Usage
In a painter
To set the secure protocol:
-
Select the secure protocol from the secureProtocol list on the General page in the object's Properties view.
In scripts
The SecureProtocol property takes an integer value. The following example sets the SecureProtocol property to TLS 1.0:
HttpClient lnv_HttpClient lnv_HttpClient = Create HttpClient Constant Integer SECURE_PROTOCOL_TLS1 = 3 // Set secure protocol to TLS1.0 lnv_HttpClient.SecureProtocol = SECURE_PROTOCOL_TLS1 // default is 0, means all secure protocols // Send GET request lnv_HttpClient.SendRequest("GET", "https://demo.appeon.com/PB/webapi_client/employee/102")