LOCAL loXMLHTTP as "MSXML2.XMLHTTP", lAsync as Boolean, JSONCred as String loXmlHttp = CREATEOBJECT("MSXML2.XMLHTTP") lAsync=.T. &&asynchronohus cUser="hbelalcazar@xsoftware.com.co" cPass="abcfghz$" cdom="https://xxxtapi.awswebsites.net/api/Internal_list" JSONCredentials = '{ "username": "hbelalcazar@xsoftware.com.co", "password": abcfghz$", "client": "companyx" }' loXmlHttp.open("POST", cdom, lAsync) && no need to send user and password here loXmlHttp.setRequestHeader("Content-type:", "application/json") && This was the last line added loXmlHttp.setRequestHeader("Accept:", "application/json") loXmlHttp.send(JSONCredentials) &&returns the data OK!