WinHttp TLS connection in classic asp

后端 未结 2 1516
独厮守ぢ
独厮守ぢ 2021-01-29 03:50

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:



        
相关标签:
2条回答
  • 2021-01-29 04:08

    Option 9 is WinHttpRequestOption_SecureProtocols which is

    SSL 2.0: 0x0008
    SSL 3.0: 0x0020
    Transport Layer Security (TLS) 1.0: 0x0080

    So

    httpRequest.option(9) = &H80
    
    0 讨论(0)
  • 2021-01-29 04:20

    If you are on Windows Server 2003 you may be having the same problem I was having - if you have access to the server, try the answer I added to my own question here: https://stackoverflow.com/a/29140418/1081692 and see how you get on.

    0 讨论(0)
提交回复
热议问题