I am trying to get xml data from the api via vbscript on Windows 2000.
My simple VB script :
URL = "http://prtgserver1/api/table.xml?content=sensors&columns=sensor&username=xx&password=xx" ' {note : xx replaced with a real username/password} Set WshShell = WScript.CreateObject("WScript.Shell") Set http = CreateObject("Microsoft.XmlHttp") 'http.setoption 2,13056 http.open "GET", URL, FALSE http.send "" WScript.Echo http.responseText set WshShell = nothing set http = nothing
This returns the error: 0x800C000E
In researching this error, it appears to be related to the security certificate not being trusted. Any idea how to work around this in vbscript?
Add comment