Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offering http application updates.
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01062701
Message ID:
01070036
Views:
31
Thanks. Setting the ISAPI bug aside (ouch - i thought you fixed that), how does a procedure in a foxISAPI server get the handle to an XML sent by client with MSXML2.XMLHTTP? lcINIFile has a handle for the current post. Is lcINIFile the handle, such that my little vfp isapi server "Relay" would recieve thusly: oXML.load(lcINIFile)?

Thanks
PS,
That's it right(?) - it gets dumped to the ini - right?

Is the ISAPI bug in foxISAPI? How will I know it? And didn't you do a walk through and clean that guy up?:-)

>POST data doesn't have a any capacity... Of course if you're using a stock FoxISAPI server, there's a bug in the ISAPI dll (not sure if that ever did get fixed) that limits to 64k.
>
>+++ Rick ---
>
>>Okay (and thanks), but what if ..
>>What if the XML is larger than URL "capacity" and it sent as a request header:
*lcSendBody is a 5K XML (won't fit in URL)
>>* Client script - note the URL is to a foxISAPI COM
>>lcURL=[http://localhost/scripts/foxISAPI.dll/VFPDLL.App.Relay?"
>>oHTTP=NewOBJECT("MSXML2.XMLHTTP")
>>oHTTP.open([POST],lcURL,.f.)
>>oHttp.setRequestHeader("Content-Type", "text/xml")
>>oHttp.send(lcSendBody)
>>The script is just like an ASP call, except it's a foxISAPI server. In asp we the "request" service that has a pointer to the xml string (lcSendBody), but in fosISAPI, all we have is the stuff in "formvars". Where would the reference (or pointer) to the xml string in lcSendBody be? Would "Request" also be the argument for "oXML.Load()"?
DEFINE CLASS App as Custom OLEPUBLI
>>* Relay
>>* Get the XML from the client
>>PROCEDURE Relay
>>LPARAMETERS lcFormsVars,lcIniFile,lnReleaseFlag
>>oXML = Server.CreateObject("Msxml2.DOMDocument")
>>oXML.async = .f.
>>oXML.resolveExternals = .f.
>>oXML.load(Request) && Will this work?
>>ENDPROC && Relay
>>ENDDEFINE && App
>>
>>You can pass anything you want into a Web server application. XML is just text...
>>If the text is in the URL - but what if it is too big for the URL and requires a "setRequestHeader" to transfer a "large" string?
>>Thanks
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform