Jump to content

Calling PBXScript.CreateObject("MSXML2.XMLHTTP") failed


EricR

Recommended Posts

Hello,

We have recently upgraded our Swyxserver to version 11.10.2959. I don't know from which version we were coming, but we had a script that performed the following action:
 

    url = "hidden-url"

    xml = PBXScript.CreateObject("MSXML2.XMLHTTP")
    body = "{""id"":1,""jsonrpc"":""2.0"",""method"":""getSupportStatus"",""params"":{""serial"":"""&sSerial&""",""phonenumber"":"""&IpPbx.CallingNumber&"""}}"
 
    xml.open "POST", url, False
    xml.setRequestHeader "Content-Type", "application/json; charset=utf-8"
    xml.setRequestHeader "Content-Length", Len(body)
    xml.send body

 

    response = xml.responseText

 

etc.

It looks like, but I am not 100% sure it is related, since the upgrade creating the object with

    xml = PBXScript.CreateObject("MSXML2.XMLHTTP")

fails.

 

Do we miss something?

Is there another way of performing an HTTP post within VB of GSE?

 

Thanks for your time.

 

-

Eric

 

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.