Tool/software: TI C/C++ Compiler
I am suppose to get the response from the server but I am getting the error HTTPCli_ESENDFAIL (-103). Why post is not happening?
static int HTTPPostMethod(HTTPCli_Handle httpClient, char*post_uri) { ...... ...... moreFlags = 1; lRetVal = HTTPCli_sendRequest(httpClient, HTTPCli_METHOD_POST, post_uri, moreFlags); if(lRetVal < 0) { UART_PRINT("Failed to send HTTP POST request header.\n\r"); return lRetVal; } lastFlag = 1; lRetVal = HTTPCli_sendField(httpClient, HTTPCli_FIELD_NAME_CONTENT_LENGTH, (const char *)Post_string_size, lastFlag); if(lRetVal < 0) { UART_PRINT("Failed to send HTTP POST request header.\n\r"); return lRetVal; }
}
I am always getting the negative value from HTTPCli_sendRequest. Can I know why? Where am I wrong to connect with server to post the data?