cancel
Showing results for 
Search instead for 
Did you mean: 

12.6 classic XMLHTTP, OLEObject, OPEN, SEND and POST

Former Member
0 Kudos

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)

Accepted Solutions (0)

Answers (3)

Answers (3)

arnd_schmidt
Active Contributor
0 Kudos

The difference is also, that in case 1 you select the asynchronous operation mode and in 2 the synchronous. open method (Internet Explorer)

... not sure if that helps

Arnd

Former Member
0 Kudos

I have an example using the WinHTTP API functions wrapped in an object with functions that are similar to those in XMLHTTP.

http://www.topwizprogramming.com/freecode_winhttp.html

Former Member
0 Kudos

Hi Philip;

1) What is the exact error?

2) Have you tried this using PB's iNET object's PostURL ( ) method instead?

Regards ... Chris