Name DataType Subtype Length HTTPreq Automation 'Microsoft XML, v3.0'.XMLHTTP xmlTextNode Automation 'Microsoft XML, v3.0'.IXMLDOMText xmlDoc Automation 'Microsoft XML, v3.0'.DOMDocument CLEAR(HTTPreq); CREATE(HTTPreq,TRUE); CREATE(xmlDoc); xmlTextNode := xmlDoc.createTextNode(''); xmlTextNode.appendData(URL[1]); xmlTextNode.appendData(URL[2]); xmlTextNode.appendData(URL[3]); xmlTextNode.appendData(URL[4]); xmlTextNode.appendData(URL[5]); HTTPreq.open('POST',xmlTextNode.nodeValue, FALSE); HTTPreq.setRequestHeader('Content-type','text/xml'); HTTPreq.send(xmlTextNode.nodeValue); IF NOT (HTTPreq.status = 200) THEN MESSAGE(FORMAT(COPYSTR(HTTPreq.statusText,1,250)));
HTTPreq.send(xmlTextNode.nodeValue);it gives the following error. The weird thing is that this code is called around 100 times for each URL that I have to send, but it only happens sometimes ](*,)
Comments
Nav, T-SQL.
Is there a way to check if the send call has been executed correct and not continue until finished?
Maybe using "waitForResponse"?
Something like
I also changed variable:
to
I'm new in using xmlhttp, so help is appreciated. Thx!