Tool/software: TI-RTOS
Hello,
I am having issues sending HTTP requests to a server. I'm using TIRTOS with the http library in <ti/net/http/httpclient.h>. I used the httpget example for CCS as a starting point. The server requires that I send a POST request containing a json payload in the body. The server keeps throwing various error codes in the response when I toggle different combinations of headers. I eventually tried removing all headers except for the Content-type header and that's when I finally received the following error:
HTTP Response Status Code: 415
{"detail":"Unsupported media type \"application/json \u0019\" in request."}
I believe the drivers are including an extra space and uni-code character after every header. I had previously had my authentication tokens rejected for containing an extra space in the token and noticed an unrenderable symbol on the server-side logs in place of the user-agent.
If anyone is able to help me remove these extra characters, your help would be much appreciated.
Thanks.