同样的程序对应不同的API网关 一个正常一个不能连接的原因

qq_36791357 2019-04-20 07:22:36
跪求高手支招 同样的程序对应不同的API网关 一个正常一个不能连接的原因。在本地电脑2个多能正常运行,上到服务器一个正常 一个不能连接。 不能连接的那个网关https://www.acardpay.biz/index.php/Gateway/securepay 服务器的浏览器直接输入能打开 有返回结果,但是放到程序中就说msxml3.dll 错误 '80072efd' 无法与服务器建立连接
测试地址 http://www.goonlinefactory.com/2.asp



dim strsend

strsend="测试"

Response.Write"<br><br>use another glbpay<br> https://pgw.glbpay.com/api/refund<br>"
set objHttp = CreateObject("MSXML2.ServerXMLHTTP")
objHttp.open "POST", "https://pgw.glbpay.com/api/refund", false
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.Send strsend
Response.Write(objHttp.status)
if (objHttp.status <> 200 ) then
Result = "Status="&objHttp.status
else
Result=objHttp.responseText
end if
Set objHttp = Nothing
Response.Write"<br>return<br>"
Response.Write(Result)



Response.Write"<br><br>use acardpay api<br> https://www.acardpay.biz/index.php/Gateway/securepay<br>"
set objHttp = CreateObject("MSXML2.ServerXMLHTTP")
objHttp.open "POST", "https://www.acardpay.biz/index.php/Gateway/securepay", false
objHttp.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
objHttp.Send strsend
Response.Write(objHttp.status)
if (objHttp.status <> 200 ) then
Result = "Status="&objHttp.status
else
Result=objHttp.responseText
end if
Set objHttp = Nothing
Response.Write"<br>return<br>"
Response.Write(Result)
Response.Write"<br><br>"
...全文
107 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
aabbabababaa 2019-04-21
  • 打赏
  • 举报
回复
服务器怎么连的,端口有没通?

6,871

社区成员

发帖
与我相关
我的任务
社区描述
Windows 2016/2012/2008/2003/2000/NT
社区管理员
  • Windows Server社区
  • qishine
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧