本文介绍了从经典Asp返回对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Classic Asp建立对url的请求,现在成功了是我想从函数返回Request对象并获取以下内容问题:对象不支持此属性或方法,我该怎么办?
I am using Classic Asp to build request to a url which is successful now the problemis that I want to return the Request object from the function and getting the followingproblem:Object doesn't support this property or method,How can I do it ?
Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0")
objSrvHTTP.open "POST","Https://",False,"",""
objSrvHTTP.SetRequestHeader "Content-Type", "text/xml"
objSrvHTTP.SetRequestHeader "Authorization", "Basic " & EncodeBase64("[email protected]:f00tball")
objSrvHTTP.SetRequestHeader "dev-t", " MyAccessKey "
objSrvHTTP.SetRequestHeader "Cookie", "ubid-main=172-9288630-2514702; session-id=026-6553457-3334020; session-id-time=1191279600l;"
objSrvHTTP.send
BuildRequest=objSrvHTTP
谢谢
推荐答案
更改
BuildRequest=objSrvHTTP
到
Set BuildRequest=objSrvHTTP
返回对象.
这篇关于从经典Asp返回对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!