| |
zrocool97
Posts: 4
Score: 0
Joined: 3/23/2005
From:
Status: offline
|
Currently, I am attempting to use the HTTP Request object to call on a "POST" function (class) to take an XML file and upload it to web server url. Here's the script so far: Dim HttpRequest, PostUrl, XmlDocument, Loaded, FileName PostUrl = "https://cobra.sat.rackspace.com:8443/rtsaudit/upload/index.jsp" FileName = "c:\Metrics.xml" Set XmlDocument = WScript.CreateObject("Msxml2.DOMDocument.3.0") XmlDocument.async = False Loaded = XmlDocument.load(FileName) If Loaded Then Set HttpRequest = WScript.CreateObject("Msxml2.XMLHTTP.3.0") HttpRequest.open "POST", PostUrl, false HttpRequest.send XmlDocument ' If (HttpRequest.status = 200) Then ' succesful POST ' process response here e.g. ' WScript.Echo HttpRequest.responseXML.xml ' Else ' handle HTTP error here ' WScript.Echo "Error: " & HttpRequest.status & " " 'HttpRequest.statusText ' End If End If During debug of the script, I received an error right at the "HttpRequest.send XmlDocument" line. The error msg: msxml3.dll: The download of the specified resource has failed Now, i'm attempting to troubleshoot this issue. I was hoping that someone would have a script that has been "tried and true" to post an XML file to an uploading url which is HTTPS: .......... Transport wiil be through HTTP on an intranet. Thanx for the help.
|
|