From: Daniel Stenberg Date: Tue, 8 Aug 2023 09:30:17 +0000 (+0200) Subject: test2306: make it use a persistent connection X-Git-Tag: curl-8_3_0~189 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06e2fa2b516675630991154b1fde68d064a44846;p=thirdparty%2Fcurl.git test2306: make it use a persistent connection + enable verbose already from the start Closes #11621 --- diff --git a/tests/data/test2306 b/tests/data/test2306 index 5d4e5f70c4..f8df4cd051 100644 --- a/tests/data/test2306 +++ b/tests/data/test2306 @@ -17,7 +17,6 @@ Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT ETag: "21025-dc7-39462498" Accept-Ranges: bytes Content-Length: 6 -Connection: close Content-Type: text/html Funny-head: yesyes diff --git a/tests/libtest/lib2306.c b/tests/libtest/lib2306.c index fe8a28ea68..6023bfee4c 100644 --- a/tests/libtest/lib2306.c +++ b/tests/libtest/lib2306.c @@ -39,11 +39,11 @@ int test(char *URL) cl = curl_easy_init(); curl_easy_setopt(cl, CURLOPT_URL, URL); + curl_easy_setopt(cl, CURLOPT_VERBOSE, 1L); curl_easy_perform(cl); /* re-use handle, do a second transfer */ curl_easy_setopt(cl, CURLOPT_URL, URL2); - curl_easy_setopt(cl, CURLOPT_VERBOSE, 1L); curl_easy_perform(cl); curl_easy_cleanup(cl); curl_global_cleanup();