Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using HTTP Post from within a VFP program?
Message
From
23/10/2003 12:45:45
 
 
To
22/10/2003 10:58:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832258
Message ID:
00841668
Views:
46
I can rip some out of my page, but it's ASP and javascript os you'll need to translate.

Client side:
// Could have very large strings, so wrap in XML and post
var objXMLDoc = new ActiveXObject( "MSXML2.DOMDocument");
objXMLDoc.async = false;
objXMLDoc.resolveExternals = false;
objXMLDoc.loadXML( "" + strParams + "" + strUnassigned + "" + intRoundNo + "" + intGroupID + "")

// ...post...
var objSrvHTTP = new ActiveXObject( "MSXML2.XMLHTTP");
objSrvHTTP.open( "POST", gsPathCupComps + "Draws_Save.asp", false);
objSrvHTTP.send( objXMLDoc);

if ( objSrvHTTP.responseText == "True") {
Previous
Reply
Map
View

Click here to load this message in the networking platform