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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only