Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Authorisation
Message
De
20/12/2017 07:34:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Authorisation
Divers
Thread ID:
01656583
Message ID:
01656583
Vues:
57
I am coding for connection to a web service for upload of XML files:-
objHTTP=CREATEOBJECT("MSXML2.XMLHTTP.6.0")
WITH objHTTP
.open("POST", mstrURL,.f.)
lcBasicAuth = "Basic " + STRCONV(mstrUsername+":"+mstrPassword,13)
.setRequestHeader("Authorization",lcBasicAuth)
.setRequestHeader("Content-Type","application/xml; charset=UTF-8")
.Send(ObjUnform.xml)
ENDWITH

The code returns status 401 unauthorised. Anyone know what I am missing
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform