When I run the following code as a thread, it hangs with oXMLHTTPae.readystate of 1 (connection established).
Any ideas why this would happen?
Is there a different object I could use to post the XML?
I would appreciate any help,
Thanks,
Eddie
xTextString=pcXML
local url,ResultBytes
URL = "https://webservices.averittexpress.com/LTLRateQuoteService"
oXMLHTTPae=createobject("MSXML2.ServerXMLHTTP")
oXMLHTTPae.Open("POST",URL,.t.)
oXMLHTTPae.setRequestHeader("Referer","American Carpet")
oXMLHTTPae.setRequestHeader("Host", "webservices.averittexpress.com" )
oXMLHTTPae.setRequestHeader("Content-Length",allt(str(len(xTextString),9,0)))
oXMLHTTPae.send(xTextString)
xloopcnt=0
do while oXMLHTTPae.readystate<>4 and xloopcnt<200
sleep(100)
xloopcnt=xloopcnt+1
enddo