mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
example/http2-download: set CURLOPT_BUFFERSIZE
Primarily because no other example sets it, and remove the disabling of the certificate check because we should not recommend that. Closes #11284
This commit is contained in:
parent
578becba30
commit
ad8a8e048e
@ -170,13 +170,12 @@ static void setup(struct transfer *t, int num)
|
||||
curl_easy_setopt(hnd, CURLOPT_DEBUGFUNCTION, my_trace);
|
||||
curl_easy_setopt(hnd, CURLOPT_DEBUGDATA, t);
|
||||
|
||||
/* enlarge the receive buffer for potentially higher transfer speeds */
|
||||
curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 100000L);
|
||||
|
||||
/* HTTP/2 please */
|
||||
curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
|
||||
|
||||
/* we use a self-signed test server, skip verification during debugging */
|
||||
curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||
curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L);
|
||||
|
||||
#if (CURLPIPE_MULTIPLEX > 0)
|
||||
/* wait for pipe connection to confirm */
|
||||
curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L);
|
||||
|
Loading…
Reference in New Issue
Block a user