Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSXML POST and Headers Issue
Message
From
14/05/2008 14:48:43
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
MSXML POST and Headers Issue
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01317111
Message ID:
01317111
Views:
62
Partial code block below.

Everyone has told me that the headers need to be set prior to the POST, but I get an OLE Exception on the MSXML3.DLL when I do that. But, it doesn't seem to work and return the proper XML when it is after the POST either.

Any help appreciated.
* Create XMLHttp Object
* lxmlObj = CREATEOBJECT("Microsoft.XMLHTTP")
 lxmlObj = CREATEOBJECT("MSXML2.XMLHTTP.3.0")

* Open GET
lxmlObj.Open("POST", lcURL, .F.)

* Set Header
lxmlObj.SetRequestHeader("authorization", cAuthenticate)
lxmlObj.SetRequestHeader("SOAPAction", "")

* SEND
lxmlObj.SEND()
Next
Reply
Map
View

Click here to load this message in the networking platform