mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
Merge branch 'main' into reclaimtls
This commit is contained in:
commit
4ff2d179b0
9 changed files with 42 additions and 16 deletions
|
@ -40,6 +40,7 @@ CURL* create_request(const char* url, int request_id, DataCallback data_callback
|
|||
|
||||
curl_easy_setopt(http_handle, CURLOPT_PRIVATE, request_info);
|
||||
curl_easy_setopt(http_handle, CURLOPT_URL, url);
|
||||
curl_easy_setopt(http_handle, CURLOPT_BUFFERSIZE, 512*1024);
|
||||
|
||||
//callbacks to pass the response data back to js
|
||||
curl_easy_setopt(http_handle, CURLOPT_WRITEFUNCTION, &write_function);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue