VB里面大致有如下代码:
Set objHttp = CreateObject("Microsoft.XMLHTTP")
strUrl = text1.text
strData = "....."
objHttp.Open "POST", strUrl, False
objHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHttp.Send strData如果strUrl是HTTP的就没问题,要是改成HTTPS,objHttp.Send就出问题了,提示“指定资源下载失败”,用IE直接或用JS访问HTTPS是没问题的请问要好的解决办法呀
Set objHttp = CreateObject("Microsoft.XMLHTTP")
strUrl = text1.text
strData = "....."
objHttp.Open "POST", strUrl, False
objHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
objHttp.Send strData如果strUrl是HTTP的就没问题,要是改成HTTPS,objHttp.Send就出问题了,提示“指定资源下载失败”,用IE直接或用JS访问HTTPS是没问题的请问要好的解决办法呀
www.vicmiao.com
努力就有美好時光!
Http://www.dotnet247.com/247reference/msgs/27/135832.aspx
Dim objXMLHTTP, xml'Create & initialize the XMLHTTP object
Set xml = Server.CreateObject("Microsoft.XMLHTTP")sRemoteURL = "https://www.eProcessingNetwork.Com/cgi-bin/tdbe/transact.pl"'Open the connection to the remote server
xml.Open "POST", sRemoteURL, False'Send the request to the eProcessingNetwork Transparent Database Engine
xml.Send "ePNAccount=05971&CardNo=05971&ExpMonth=10&ExpYear=01" & _
"&Total=12.95&Address=123&Zip=12345&HTML=No"'store the response
sResponse = xml.responseText
难到是WEB服务器的问题,但采用GET方法也没事呀
(我必须要用POST,数据量超过GET的限制了
www.vicmiao.com
努力就有美好時光!