You don't need to use that anymore there's an **.AddHeader()** method that does the right thing.
+++ Rick ---
>Hi Dmitry,
>
>wwhttp has a property called cExtraheaders where you can add additional header- data.
>
>
>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).
>But in most HTTP-Services the authorisation is done by either using POST like
>
>
>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
>
>Thomas