]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test2306: make it use a persistent connection
authorDaniel Stenberg <daniel@haxx.se>
Tue, 8 Aug 2023 09:30:17 +0000 (11:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Aug 2023 21:27:24 +0000 (23:27 +0200)
+ enable verbose already from the start

Closes #11621

tests/data/test2306
tests/libtest/lib2306.c

index 5d4e5f70c4702ad28c2763bbe840cbaab4eb2270..f8df4cd0518f541f05f8cf5b25b87a6fe72ee35f 100644 (file)
@@ -17,7 +17,6 @@ Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
 ETag: "21025-dc7-39462498"\r
 Accept-Ranges: bytes\r
 Content-Length: 6\r
-Connection: close\r
 Content-Type: text/html\r
 Funny-head: yesyes\r
 \r
index fe8a28ea68da264806a19161ddc339e28d1da6a6..6023bfee4c44d8141bb608317f4f2f0f5bacf94a 100644 (file)
@@ -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();