Read the content of a webpage with a windows agent

Document ID : KB000089464
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Read the content of a webpage with a windows agent
Resolution:

Solution

If you want to read a webpage with a windows agent and interpret the content of this site you could automate this with Automic and a vbs script. The script is called web.vbs.
This is the content of web.vbs:
 
Dim oXMLHTTP
Dim oStream
Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0")
oXMLHTTP.Open "GET", WScript.Arguments.Item(0), False
oXMLHTTP.Send
If oXMLHTTP.Status = 200 Then
wscript.echo oXMLHTTP.responseText
End If
 
Now create an Automic job and type the following line into the process tab:
cscript c:\web.vbs http://website.com
 
 

?