Dear SW Community,
I am trying to run an HTTP post using VB script. I am not successful. Need help in this regard.
Set objArgs = Wscript.Arguments
'URL to open....
sUrl = "MYURL"
'POST Request to send.
sRequest = "MESSAGE" & objArgs(0)
HTTPPost sUrl, sRequest
Function HTTPPost(sUrl, sRequest)
set oHTTP = CreateObject("Microsoft.XMLHTTP")
oHTTP.open "POST", sUrl,false
oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
oHTTP.setRequestHeader "Content-Length", Len(sRequest)
HTTPPost = oHTTP.responseText
Thx for your reply. I actually want to use the "Send or get a post request" feature in the Syslog Viewer/Trap Viewer alerts. Since this option is not available there so i want to use this option(send/post http) using VBscript option (which is available in the syslog/trap viewer).
Please do share if you can find something related to my request. Thanks in advance.
Good news! Log Analyzer for Orion® offer a significant improvement on how we handle syslog/traps and includes the ability to leverage all the alert trigger actions Creating an Orion Alert with Log Analyzer
You are in luck. You can achieve exactly what you need without additional spend, by upgrading NPM to the latest platform release 2019.4 and choosing the OLV add-on during the installation. Orion Log Viewer the New and Improved Version of the Syslog and Trap Viewers
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.