EricR Posted June 18, 2018 #1 Share Posted June 18, 2018 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 More sharing options...
Tom Wellige Posted June 19, 2018 #2 Share Posted June 19, 2018 Hi Eric, what kind of error message do you find in the server trace after calling PBXScript.CreateObject? Link to comment Share on other sites More sharing options...
EricR Posted June 19, 2018 Author #3 Share Posted June 19, 2018 Hi Tom, Thanks for your reply We have tried to catch it and, it is error 438, in text: Object doesn't support this property or method - Eric Link to comment Share on other sites More sharing options...
Tom Wellige Posted June 20, 2018 #4 Share Posted June 20, 2018 There is something missing in your code: a "Set" Set xml = PBXScript.CreateObject("MSXML2.XMLHTTP") Link to comment Share on other sites More sharing options...
EricR Posted June 20, 2018 Author #5 Share Posted June 20, 2018 Hi Tom, Thanks for your reply That was a stupid BASIC mistake. ? Thanks again. - Eric Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.