set req=server.createObject( "Microsoft.XMLHTTP ")
dim url:url= "https://www.nta-merchant.com/gateway/transfer/v1/member_to_merchant/index.cfm "
req.open "post ",url,false
req.setRequestHeader "content-type ", "application/x-www-form-urlencoded "
req.send()
dim doc
doc=req.responseXML
approval=doc.selectSingleNode( "//approval ").text
response.write approval
上面的代码在doc=req.responseXML这一行老是报对象不支持此属性或方法的错误,请问为什么啊
------解决方案--------------------
response.write req.getAllResponseHeaders()可以看到,目标页的ContentType是text/html,这时http.responseXML不管用
可以新建一个dom对象,然后loadXML req.responseText