How do I force VB.Net (2010) to use TLS as required by PayPal changes?
Posted on 2014-11-21
We need to update our app (running on WinXP) to successfully post transactions to PayFlowPro which is disabling SSL 3.0 on 12/3. We are using MSXML2.XMLHTTP in vb.net to post the transactions like this:
Dim xmlHTTP As MSXML2.XMLHTTP = New MSXML2.XMLHTTP
xmlHTTP.open("POST", strURL, False)
resp = xmlHTTP.responseText
I tried putting the following above the dim statement:
'System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
but it didn't change anything. Anyone have any idea how to accomplish this?