Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSXML POST and Headers Issue
Message
De
14/05/2008 14:48:43
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
MSXML POST and Headers Issue
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01317111
Message ID:
01317111
Vues:
63
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()
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform