Skip to Content
0
Former Member
Mar 20, 2015 at 07:07 AM

12.6 classic XMLHTTP, OLEObject, OPEN, SEND and POST

751 Views

Below both case 1 and 2 worked in 10.5, but now only case 2 works. case 1 gives me a system error in 12.6

The only difference is that in case 1, I am using an IP address where as case 2 I am using a https:// address.

case1

OLEObject xmlhttp

xmlhttp = CREATE OLEObject

xmlhttp.ConnectToNewObject("Microsoft.XMLHTTP")

xmlhttp.open('POST',"126.0.0.1:16648", true);

xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

XmlHttp.send(ls_xmlstring)

case 2

OLEObject xmlhttp

xmlhttp = CREATE OLEObject

xmlhttp.ConnectToNewObject("Microsoft.XMLHTTP")

ls_open = "https://..."

xmlhttp.open("POST", "https://www.......:"ls_open, false);

xmlHttp.send(ls_xmlstring)