Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSXML POST and Headers Issue
Message
 
To
14/05/2008 14:48:43
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01317111
Message ID:
01317810
Views:
18
Just a shoot in the dark:
try adding lxmlObj.setRequestHeader( "Content-Type","application/x-www-form-urlencoded") in you SET HEADER section

Jaime

>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()
>
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform