in src/uhttp.c [1046:1071]
static int send_http_data(HTTP_CLIENT_HANDLE_DATA* http_data, HTTP_CLIENT_REQUEST_TYPE request_type, const char* relative_path,
STRING_HANDLE http_line)
{
int result;
STRING_HANDLE transmit_data = construct_http_data(request_type, relative_path, http_line);
if (transmit_data == NULL)
{
LogError("Failure constructing http data");
result = MU_FAILURE;
}
else
{
/* Tests_SRS_UHTTP_07_016: [http_client_execute_request shall transmit the http headers data through a call to xio_send;]*/
if (write_text_line(http_data, STRING_c_str(transmit_data) ) != 0)
{
result = MU_FAILURE;
LogError("Failure writing request buffer");
}
else
{
result = 0;
}
STRING_delete(transmit_data);
}
return result;
}