summaryrefslogtreecommitdiffstats
path: root/aclk/legacy/aclk_lws_https_client.h
blob: 811809dd1a7e741d1a4a15afd58daa615c346e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef NETDATA_LWS_HTTPS_CLIENT_H
#define NETDATA_LWS_HTTPS_CLIENT_H

#include "../../daemon/common.h"
#include "libnetdata/libnetdata.h"

#define DATAMAXLEN 1024*16

#ifdef ACLK_LWS_HTTPS_CLIENT_INTERNAL
#define ACLK_CONTENT_TYPE_JSON "application/json"
#define SEND_HTTPS_REQUEST_TIMEOUT 30
#endif

int aclk_send_https_request(char *method, char *host, int port, char *url, char *b, size_t b_size, char *payload);

#endif /* NETDATA_LWS_HTTPS_CLIENT_H */