oHTTP=NewOBJECT("MSXML2.XMLHTTP") *lcURL=[http://localhost/scripts/foxisapi.dll/VFPServer.VFPISAPI.TestXML] oHTTP.open([POST],lcURL,.f.) oHttp.setRequestHeader("Content-Type", "text/xml") oHTTP.send(lcXML) *The send looks typical!Here is how it is received by a foxISAP VFP Server:
DEFINE CLASS VFPISAPI as Custom OLEPUBLI PROCEDURE TestXML LPARAMETERS lcFormsVars,lcIniFile,lnReleaseFlag *Server.CreateObject does not work oXML=CreateObject("Msxml2.DOMDocument") oXML.async = .f. oXML.resolveExternals = .f. oXML.LoadXML(lcFormsVars) RELEASE oXML ENDPROC ENDDEFINE && VFPISAPIThis is what the INI File looks like:
[FOXISAPI] Request Method=POST Query String= Logical Path=/VFPServer.VFPISAPI.TestXML Physical Path=C:\Inetpub\Scripts\VFPServer.VFPISAPI.TestXML FoxISAPI Version=FoxISAPI v1.2 Request Protocol=HTTP/1.1 Referer=/scripts/foxisapi.dll Server Software=Microsoft-IIS/5.1 Server Name=localhost Server Port=80 Remote Host=xxx.x.x.x Remote Address=xxx.x.x Authenticated Username=COMPUTER\OWNER [ALL_HTTP] HTTP_ACCEPT=*/* HTTP_ACCEPT_LANGUAGE=en-us HTTP_CONNECTION=Keep-Alive HTTP_HOST=localhost HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461) HTTP_AUTHORIZATION=Negotiate TlRMTVNTUAADAAAAAAAAAEAAAAA *** intentionally truncated HTTP_CONTENT_LENGTH=13703 HTTP_CONTENT_TYPE=text/xml HTTP_ACCEPT_ENCODING=gzip, deflate HTTP_CACHE_CONTROL=no-cache [Accept] */*=Yes [SYSTEM] GMT Offset=-21600 <?xml version="1.0" standalone="no" ?> ***** Rest of XML Follows *****First - note the content length. That much data cannot be parked as a parameter in the URL.