I'm trying to send payment data to SagePay and, as they are turning off SSL, it needs to be sent using TLS.
The code I have is as follows:
set httpRequest = Server.CreateObject("WinHttp.WinHttprequest.5.1")
httpRequest.Open "POST", CStr(strPurchaseURL), false
httpRequest.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
httpRequest.send strPost
strResponse = httpRequest.responseText
I've been told that adding an option lets you set the protocol used but the only one I've found is:
httpRequest.option(9) = 2720
which allows for TLS and SSL but it can only be TLS, does anyone know what the code needs to be or is there something else I should be doing.