|
@@ -204,7 +204,7 @@ int LOG_OS_HttpPost(const char* url,
|
|
|
char** header_array,
|
|
|
int header_count,
|
|
|
const void* data,
|
|
|
- int data_len, const char* channelId, const char* token)
|
|
|
+ int data_len, const char* channelId, const char* token, const char* terminalno, const char* reserve1)
|
|
|
{
|
|
|
int retCode = 480;
|
|
|
HttpClientResponseResult result;
|
|
@@ -402,7 +402,7 @@ void cur_slist_free_all(struct cur_slist *lst)
|
|
|
}
|
|
|
|
|
|
post_log_result* post_logs(const char* endpoint, const char* accesskeyId, const char* accessKey, const char* stsToken, lz4_log_buf* buffer, log_post_option* option,
|
|
|
- const char* channelId, const char* token)
|
|
|
+ const char* channelId, const char* token, const char *terminalno, const char *reserve1)
|
|
|
{
|
|
|
post_log_result * result = (post_log_result *)malloc(sizeof(post_log_result));
|
|
|
memset(result, 0, sizeof(post_log_result));
|
|
@@ -424,7 +424,7 @@ post_log_result* post_logs(const char* endpoint, const char* accesskeyId, const
|
|
|
url = sdscat(url, endpoint);
|
|
|
|
|
|
if(buffer->data != NULL && buffer->length != 0)
|
|
|
- res = LOG_OS_HttpPost(url, header_array, header_count, (const void *) buffer->data, buffer->length, channelId, token);
|
|
|
+ res = LOG_OS_HttpPost(url, header_array, header_count, (const void *) buffer->data, buffer->length, channelId, token, terminalno, reserve1);
|
|
|
|
|
|
result->statusCode = res;
|
|
|
|