Applies to
HTTPClient, RestClient, TokenRequest, OAuthRequest
Description
When the IgnoreServerCertificate property is set with a value, the program will ignore certain type(s) of server certificate error when sending a request. The value can be one or a sum of one or more of the following values. The default value is 0.
-
0 -- ignores all certificate errors
-
1 -- ignores unknown certificate authentication (CA)
-
2 -- ignores certificates whose date is invalid
-
4 -- ignores certificates whose common name (CN) is invalid
-
8 -- ignores certificates with incorrect usage
Usage
In scripts
The IgnoreServerCertificate property takes an integer value.
Integer li_rtn
HttpClient lnv_HttpClient
lnv_HttpClient = Create HttpClient
String ls_json = '{"empId":100, "fname":" John", "lname": "Guevara"}'
// Not to validate the server certificate after sending request (default is 0)
lnv_HttpClient.ignoreServerCertificate = 0
// Send request using POST method
li_rtn = lnv_HttpClient.SendRequest('POST', "https://demo.appeon.com/PB/webapi_client/employee", ls_json)

