From 06e2fa2b516675630991154b1fde68d064a44846 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 8 Aug 2023 11:30:17 +0200 Subject: [PATCH] test2306: make it use a persistent connection + enable verbose already from the start Closes #11621 --- tests/data/test2306 | 1 - tests/libtest/lib2306.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.47.3