1

httpsで始まる外部ページに http リクエストを送信できません。ただし、setOption(2) = 13056 を使用してセキュリティ エラーを無視すると、次のエラーが表示されます: msxml3.dll エラー '80072f8f' セキュリティ エラーが発生しました。サーバー構成にアクセスできず、プログラムによる解決策を探しています。

<%
Dim data, httpRequest, postResponse

data= "a="&request.querystring("a")
Set httpRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")
httpRequest.setOption(2) = 13056
httpRequest.Open "POST", "https://example.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
%>
4

1 に答える 1

0

I solved my problem by switching from this:

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

to this

Set httpRequest = Server.CreateObject("MSXML2.XMLHTTP.6.0")
于 2016-05-19T21:25:04.307 に答える