add gzip and brotli support

This commit is contained in:
ading2210 2024-01-08 22:09:20 -05:00
parent 7472c899db
commit e4c064401e
6 changed files with 69 additions and 7 deletions

View file

@ -46,6 +46,7 @@ void perform_request(const char* url, const char* json_params, DataCallback data
//some default options
curl_easy_setopt(http_handle, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(http_handle, CURLOPT_ACCEPT_ENCODING, "");
//parse json options
cJSON* request_json = cJSON_Parse(json_params);