This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220: cc3220 HttpPost sdk2.10

Part Number: CC3220

Tool/software: Code Composer Studio

hi ,

I want to send data to the cloud using the cc3220Httpget example(sdk2.10)

#define headerf   "Authorization: Bearer f06e3cfae4d95d63647e33c635ad1806\r\n Cache-Control: no-cache\r\n Content-Type: application/json\r\n"
#define POST_DATA   "{\"values\": [{\"timestamp\": \"2018-04-03T18:05:47.450Z\", \"value\": 34 }]}"

ret = HTTPClient_setHeader(httpClientHandle, (HTTPClient_HFIELD_REQ_AUTHORIZATION | HTTPClient_HFIELD_REQ_CACHE_CONTROL | HTTPClient_HFIELD_REQ_CONTENT_TYPE) ,headerf,strlen(headerf),HTTPClient_HFIELD_PERSISTENT);

ret = HTTPClient_sendRequest(httpClientHandle,HTTP_METHOD_POST,REQUEST_URI,POST_DATA,sizeof(POST_DATA),0);

my Error! code = 400, desc = httpTask: cannot get status.

This information is sufficient when I test it with POSTMAN..

where am i wrong ? 

Please help me .

Thank you