I see this code works in asp 4.0
System.Net.ServicePointManager.SecurityProtocol =
System.Net.SecurityProtocolType.Ssl3
| System.Net.SecurityProtocolType.Tls12
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls;
QUESTION: Would this work in asp 2.0 ?? Is the 'or' ok or is there a better way?
System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, System.Net.SecurityProtocolType) Or DirectCast(768, System.Net.SecurityProtocolType) Or DirectCast(192, System.Net.SecurityProtocolType) Or DirectCast(48, System.Net.SecurityProtocolType)
I use HTTPSWebRequest to get data via RESP API, and now different providers have different TLS for different URLS. So I need to allow all different type protocols to allow all of them to work. I have no idea how to allow different URLs to use different TLS protocols on request in asp 2.0 .
NOTE: My asp net 2.0 application is massive and I have not got the time to upgrade.