日期:2014-05-17  浏览次数:23868 次

asp异步处理https请求出现异常
大家请看下面代码:
HTML code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<%
    dim xmlhttp,resResult
    set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
    
    xmlhttp.Open "POST","https://unionpaysecure.com/api/Query.action",false
    'xmlhttp.Open "POST","http://58.246.226.99/UpopWeb/api/Query.action",false
    xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset=" & upop_charset
    xmlhttp.send DataToSend
    Response.ContentType = "text/html"
    Response.Charset = upop_charset
    
    '服务器返回结果
    resResult = xmlhttp.responseText
    response.Write("resResult:" & resResult & "<br/>")
    Set xmlhttp = nothing
%>
</body>
</html>


处理此https请求报如下异常:
HTML code

An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.



如果换成http(注释的那个)就没有问题?
什么原因,如何解决,求达人相助!

谢谢!本人在线等答案,加急贴,答对定追加分!

------解决方案--------------------
改成这个呢?xmlhttp.Open "POST","http://unionpaysecure.com/api/Query.action",false

------解决方案--------------------
xmlhttp.Open "POST","https://unionpaysecure.com/api/Query.action",false
'xmlhttp.Open "POST","http://58.246.226.99/UpopWeb/api/Query.action",false
很明显

你的第一个网址少了一个UpopWeb/
------解决方案--------------------
还有你第一个网址是https开头而不是http开头,两者不一样哦
------解决方案--------------------
楼主明白啦?明白就散风结贴。。。
------解决方案--------------------
嗯,

HTTPS(全称:Hypertext Transfer Protocol over Secure Socket Layer),是以安全为目标的HTTP通道,简单讲是HTTP的安全版。即HTTP下加入SSL层,HTTPS的安全基础是SSL,因此加密的详细内容就需要SSL。 它是一个URI scheme(抽象标识符体系),句法类同http:体系。用于安全的HTTP数据传输。https:URL表明它使用了HTTP,但HTTPS存在不同于HTTP的默认端口及一个加密/身份验证层(在HTTP与TCP之间)。这个系统的最初研发由网景公司进行,提供了身份验证与加密通讯方法,现在它被广泛用于万维网上安全敏感的通讯,例如交易支付方面。

http://support.microsoft.com/kb/302080

------解决方案--------------------
楼主明白了吗?不明白的话百度吧,我也帮不到你了
------解决方案--------------------
是不是服务器有什么限制, 
看下这个,我以前遇到的一个情况.
http://support.microsoft.com/kb/289481/
------解决方案--------------------
我觉得这是iis的一个保护机制, 
MSXML2.ServerXMLHTTP 这个是服务器端的访问, 和客户端是不一样的.
我觉得你应该着手于iis的设置, 降低保护级别看下.