从经典Asp返回对象 [英] Returning Object from Classic Asp

查看:48
本文介绍了从经典Asp返回对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Classic Asp建立对url的请求,现在成功了 是我想从函数返回Request对象并获取以下内容 问题: 对象不支持此属性或方法, 我该怎么办?

I am using Classic Asp to build request to a url which is successful now the problem is that I want to return the Request object from the function and getting the following problem: 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("sales@nutritionexpress.co.uk: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返回对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆