如何将Http Post请求发送到经典ASP中的外部安全https页面?

问题描述:

我无法将http请求发送到外部页面从开始https。然而,我用setOption(2)= 13056来忽略secutrity错误,我收到此错误: msxml3.dll错误'80072f8f' 发生安全错误。我无法访问我的服务器配置并寻找编程解决方案。如何将Http Post请求发送到经典ASP中的外部安全https页面?

<% 
Dim data, httpRequest, postResponse 

data= "a="&request.querystring("a") 
Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP") 
httpRequest.setOption(2) = 13056 
httpRequest.Open "POST", "https://external-Web-Site.com", False 
httpRequest.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded" 

httpRequest.Send data 

postResponse = httpRequest.ResponseText 

'Response.Write postResponse ' or do something else with it 
%> 
+2

是该解决方案的任何帮助 - https://www.experts-exchange.com/questions /26457879/Cannot-connect-using-https-msxml3-dll-error-'80072f8f'-A-security-error-occurred.html?你有没有试过更高版本的msxml? – johna

我通过这个开关解决了我的问题:

Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP") 

这个

Set httpRequest = Server.CreateObject("MSXML2.XMLHTTP.6.0")