From d0a7ee3f613b0c3f2370c6cc81e5aafef67120f0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Sep 2019 09:41:43 +0200 Subject: cookies: using a share with cookies shouldn't enable the cookie engine The 'share object' only sets the storage area for cookies. The "cookie engine" still needs to be enabled or activated using the normal cookie options. This caused the curl command line tool to accidentally use cookies without having been told to, since curl switched to using shared cookies in 7.66.0. Test 1166 verifies Updated test 506 Fixes #4429 Closes #4434 --- tests/data/test1166 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test1166 (limited to 'tests/data/test1166') diff --git a/tests/data/test1166 b/tests/data/test1166 new file mode 100644 index 000000000..3cae80ecd --- /dev/null +++ b/tests/data/test1166 @@ -0,0 +1,53 @@ + + + +HTTP +HTTP GET +followlocation +cookies + + + +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Set-Cookie: trackyou=want; path=/ +Content-Length: 68 + +This server reply is for testing a Location: following with cookies + + + +# Client-side + + +http + + +HTTP response with cookies but not receiving! + + +http://%HOSTIP:%HTTPPORT/want/1166 http://%HOSTIP:%HTTPPORT/want/1166 + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /want/1166 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +GET /want/1166 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3