From: Daniel Stenberg Date: Sat, 8 Feb 2025 11:49:15 +0000 (+0100) Subject: lib3208: add a final easy_perform as well X-Git-Tag: curl-8_12_1~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5963f8317669bceaccc4b3496a9572e8130132ec;p=thirdparty%2Fcurl.git lib3208: add a final easy_perform as well Make the test also verify using the handle in the other order. Closes #16262 --- diff --git a/tests/data/test3208 b/tests/data/test3208 index cc646e8661..04b3c00413 100644 --- a/tests/data/test3208 +++ b/tests/data/test3208 @@ -36,7 +36,7 @@ lib%TESTNUMBER -curl_easy_perform then curl_multi_perform the same handle +easy_perform, multi_perform, easy_perform the same handle https://%HOSTIP:%HTTPSPORT/%TESTNUMBER @@ -46,15 +46,19 @@ https://%HOSTIP:%HTTPSPORT/%TESTNUMBER # # Verify data after the test has been "shot" - -GET /%TESTNUMBER HTTP/1.1 -Host: %HOSTIP:%HTTPSPORT -Accept: */* - -GET /%TESTNUMBER HTTP/1.1 -Host: %HOSTIP:%HTTPSPORT -Accept: */* - + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +Accept: */* + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +Accept: */* + +GET /%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPSPORT +Accept: */* + diff --git a/tests/libtest/lib3208.c b/tests/libtest/lib3208.c index 8a451823d6..d54e7c9835 100644 --- a/tests/libtest/lib3208.c +++ b/tests/libtest/lib3208.c @@ -48,6 +48,7 @@ CURLcode test(char *URL) easy_setopt(curl, CURLOPT_URL, URL); easy_setopt(curl, CURLOPT_HEADER, 1L); + easy_setopt(curl, CURLOPT_VERBOSE, 1L); /* no peer verify */ easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L); easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); @@ -85,6 +86,11 @@ CURLcode test(char *URL) get it */ i = msg->data.result; + curl_multi_remove_handle(multi, curl); + + /* make a third transfer with the easy handle */ + curl_easy_perform(curl); + test_cleanup: /* undocumented cleanup sequence - type UA */