T
tbergman
Guest
The problem may be that the system you're talking to requires a higher lever of SSL (TLS) than is supported by the WebClient by default When using System.Net.WebClient, code similar to the following is needed to enable higher levels of TLS. Note that this change is global to your session so could possibly impact other uses of WebClient in your session. The code below should work in 11.5. In 11.6 it can be simplified because of the built in support for enums. DEFINE VARIABLE protocolType AS System.Net.SecurityProtocolType NO-UNDO. protocolType = CAST( Progress.Util.EnumHelper:Or( System.Net.SecurityProtocolType:Tls12, System.Net.SecurityProtocolType:Tls11), System.Net.SecurityProtocolType). protocolType = CAST( Progress.Util.EnumHelper:Or(protocolType, System.Net.SecurityProtocolType:Tls), System.Net.SecurityProtocolType). System.Net.ServicePointManager:SecurityProtocol = protocolType.
Continue reading...
Continue reading...