Hi, all !
I make a request to the site and want to get the DOM document
TRY
oHttp:= CreateObject( "MSXML2.XMLHTTP" )
CATCH
oHttp:= CreateObject( "microsoft.XMLHTTP" )
END
oHttp:Open( "GET", MyURL, 1)
oHttp:setRequestHeader( 'Content-type', 'text/xml')
oHttp:Send(NIL)
fl:=int(gettickcount()/1000)
do while .T.
if oHttp:readyState=4.and.oHttp:Status=200
cTxt:=oHttp:responseText
oDc:=oHttp:responseXML
exit
endif
millisec(50)
enddo
Everything works fine. oHttp:responseText returns an html text page, but the responseXML is empty. What am I doing wrong ?