mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
parent
a3d5b199f9
commit
6d1a05b0bf
@ -51,7 +51,7 @@ All
|
|||||||
CURL *curl = curl_easy_init();
|
CURL *curl = curl_easy_init();
|
||||||
if(curl) {
|
if(curl) {
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
||||||
/* disable Nagle */
|
/* leave Nagle enabled */
|
||||||
curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 0);
|
curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 0);
|
||||||
curl_easy_perform(curl);
|
curl_easy_perform(curl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user