asp异步处理https请求出现异常
大家请看下面代码:
<!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>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.