在传统的ASP WINHTTP TLS连接 [英] WinHttp TLS connection in classic asp

查看:256
本文介绍了在传统的ASP WINHTTP TLS连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想支付数据发送到SagePay和,因为他们是关闭SSL,它需要使用TLS发送。

I'm trying to send payment data to SagePay and, as they are turning off SSL, it needs to be sent using TLS.

在code我有如下:

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

这使得TLS和SSL,但它只能是TLS,没有人知道什么code必须或者是有别的东西,我应该做的。

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.

推荐答案

如果你是Windows Server 2003上,你可能有我有同样的问题 - 如果你有机会到服务器,试试我加入到回答我自己的问题在这里: http://stackoverflow.com/a/29140418/1081692 ,看你怎么得到

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: http://stackoverflow.com/a/29140418/1081692 and see how you get on.

这篇关于在传统的ASP WINHTTP TLS连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆