I am trying to send payment data to SagePay, and since they disable 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 was told that adding an option allows you to set the protocol used, but the only thing I found:
httpRequest.option(9) = 2720
which allows you to use TLS and SSL, but it can only be TLS, does anyone know what code should do, or is there something else that I should do.
source share