
Alternate XMLHTTP Library?
<WARNING: This is a repeat of a message posted to scripting.wsh a few days
ago>
Hello:
Does anyone know of an object library which does the same thing as
Microsoft.XMLHTTP? I want to schedule a task to post to a URL and receive a
response (like an invisible Browser). I have the following VBS which uses
the Microsoft XMLDOM library which comes installed with IE 5.0:
'----- BEGIN: Script
dim xml_http, fso, logfile
set xml_http = CreateObject("Microsoft.XMLHTTP")
xml_http.Open "POST", "http://MyServer/RunSiteServerMicroPipe.asp", false
xml_http.Send
' -- Logging bit
Set fso = CreateObject("Scripting.FileSystemObject")
Set LogFile = fso.OpenTextFile("c:\MyLogFile.log", 8, true)
LogFile.WriteLine("-------------------------------" & vbCR)
LogFile.WriteLine("== " & now() & " ====== " & vbCR)
LogFile.WriteLine("-------------------------------" & vbCR)
' -- Write out the page returned by the http request to my log file
LogFile.WriteLine(xml_http.ResponseText & vbCR)
LogFile.Close
'----- END: Script
THIS WORKS! So what's the big deal? The SysAdmins won't put IE 5 on the
production webserver due to security concerns, and XMLHTTP uses some wininet
functions of IE 5, so I cant just register the msxml.dll by itself. Plus I
found this article in the MSKB stating it is a horrible idea to use XMLHTTP
in a server-to-server scenario (like mine):
http://www.*-*-*.com/
n&FR=0
So I ask again... Does anyone know of an object library which does the same
thing as Microsoft.XMLHTTP?
Many thanks in advance,
chris ames