Alternate XMLHTTP Library? 
Author Message
 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



Tue, 15 Apr 2003 03:51:28 GMT  
 Alternate XMLHTTP Library?

The BETA of msxml2.dll looks promising, but I need something without the
word "BETA" in it... anyone know of any 3rd party alternatives?

chris


Quote:
> <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://support.microsoft.com/support/kb/articles/Q237/9/06.ASP?LN=EN-...

- Show quoted text -

Quote:
> 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



Tue, 15 Apr 2003 04:14:21 GMT  
 Alternate XMLHTTP Library?
Use MSXML2.ServerXMLHTTP.
This is new from Microsoft-and has the same functionality as
Microsoft.XMLHTTP-but was developed specifically for server-side usage.


Quote:

> <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://support.microsoft.com/support/kb/articles/Q237/9/06.ASP?LN=EN-...

- Show quoted text -

Quote:
> 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



Tue, 15 Apr 2003 04:18:30 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Using the MODELENGLib library (Microsoft Visio Database Modeling Engine Type Library)

2. Calling Libraries Made By the Make Library Command

3. Reference DAO 3.6 Object Library or DAO 2.5/3.51 Compatibility Library

4. Calling Libraries Made By the Make Library Command

5. DB-Library/VBX and CT-Library/VBX

6. ADO Library vs. ADO Recordset Library

7. DB-Library error 10040: DB-Library network communication layer not loaded

8. XMLHTTP in .Net?

9. XMLHTTP class in .NET?

10. XMLHTTP in VB.Net

11. need help from expert on xmlhttp post

12. xmlhttp, works in winform, but not in webservice

 

 
Powered by phpBB® Forum Software