views:

37

answers:

1

Hello Friends,

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("[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

Thanks

+3  A: 

Change

BuildRequest=objSrvHTTP  

to

Set BuildRequest=objSrvHTTP

to return the object.

Yots