MSXML2.ServerXMLHTTP help appreciated!!
In trying to log in at another server but for some reasons the script
doesn't work. After some hours i don't get it anymore. Can someone pleas help?
Thnx!
There must be something wrong in here:
'The XMLDOM object is created
set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = false
'loads an xml file. Can use the .loadXML function to load from a string
objXML.load (server.MapPath("../store/xmldata/test229.xml"))
'create an XMLHTTP transport object
set xmlHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
'open a post connection to a page
xmlhttp.open "POST", "http://user.test.net/index.php?mod=test-store&smod=orderIO&call=xml&test=true&code", false
xmlhttp.setRequestHeader "Man", POST & " " & http://user.test.netindex.php&" HTTP/1.1"
xmlHTTP.setRequestHeader "user-Agent", "Fl-Compagny"
xmlHTTP.setRequestHeader "Cookie", pCkey&"="&Server.UrlEncode(pCVal)
xmlHTTP.setRequestHeader "AUTHORIZATION: Basic", (base64Encode(strUser&":"&strPassword))
xmlHTTP.setRequestHeader "Local_User", "user.user.net"
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.setRequestHeader "content-Length", len("mod=test-store&smod=orderIO&call=xml&test=true&code")
'send the XML to the page
xmlhttp.send objXML.xml
|