The ClientBuilder class contains a method called sslVerifyHost() that can be called to indicate whether or not to use this parameter. To use this, add the following code before executing the request:
NOTE: In the below code snippet, it is assumed that oHttpClient has already been instantiated. This code will not execute as is. It is simply demonstrating how/where to add nohostverify.
USING OpenEdge.Net.HTTP.IHttpClientLibrary.
USING OpenEdge.Net.HTTP.Lib.ClientLibraryBuilder.
DEFINE VARIABLE oLib AS IHttpClientLibrary NO-UNDO.
oLib = ClientLibraryBuilder:Build()
:sslVerifyHost(NO)
:Library.
oHttpClient = ClientBuilder:Build()
:UsingLibrary(oLib)
:Client.
The above code sample shows that passing a FALSE value tells the HTTP Client NOT to verify the host when connecting.
Note: While the shell of this method was implemented before 11.6.1, the sslVerifyHost() method has no effect until OpenEdge Release 11.6.1.