this.oHTTP.cExtraHeaders = "accept:application/json" + CHR(13) + CHR(10) ; + "Authorization:Bearer" + this.cToken + CHR(13) + CHR(10)In this example this adds a line for the data-format needed and a line to send a token (Session-ID).
cContent = "{ " + Chr(34) + "username" + Chr(34) + " : " + Chr(34) + this.cUser + Chr(34) + ", " + Chr(34) + "password" + Chr(34) + " : " + Chr(34) + this.cPasswort + Chr(34) + "}" this.oHTTP = CREATEOBJECT("wwhttp") this.oHTTP.AddPostKey(cContent)or as also mentioned before by using a GET with added parameters like:
cHttp = this.cUrl + "Login?anmeldename=" + this.cUser + "&passwort=" + this.cPasswort cResult = this.oHTTP.HTTPGet(cHttp)Best regards