mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-12 22:10:01 -04:00
add gzip and brotli support
This commit is contained in:
parent
7472c899db
commit
e4c064401e
6 changed files with 69 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue