Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Authorisation
Message
From
20/12/2017 07:34:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Authorisation
Miscellaneous
Thread ID:
01656583
Message ID:
01656583
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform