I have another platform and have tested my encrypted JSON payload so I know the encryption is working (Thank you Andrew Graham! )
When I try to inquire at the server I am getting a http status code of 415.
Based on the previous platform I know that it is failing at the authentication level.
Is there any way to confirm that b4a is indeed attaching the required headers?
HTTP error code 415 almost always indicates a Content-Type problem, not an authentication issue.
In your code, you're using "text/plain" but you're using JSON.
It's likely that the server expects application/json, or a specific type defined by the API (for example, application/octet-stream, application/encrypted+json, etc.).
I just finished developing this on a PHP based server. When I did not have the correct headers I got 415 and 401. When I included the proper API headers the error message went to 500 when I had the wrong content. It says text/plain because the JSON data is encrypted with AES-256-CBC then encoded with base64