diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2021-02-25 18:12:28 +0100 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2021-02-25 18:12:28 +0100 |
commit | 82c583dcf009f038a9ceccc695f942f24015f9ab (patch) | |
tree | 8bf04adb2ee16faa8406b5b3cabd516f6b223dc5 /tests/data | |
parent | 1b2098c3c9580c431cc9c4b110249abfd94792ed (diff) | |
download | curl-82c583dcf009f038a9ceccc695f942f24015f9ab.tar.gz |
cookies: Support multiple -b parameters
Previously only a single -b cookie parameter was supported with the last
one winning. This adds support for supplying multiple -b params to have
them serialized semicolon separated. Both cookiefiles and cookies can be
entered multiple times.
Closes #6649
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/test329 | 8 | ||||
-rw-r--r-- | tests/data/test6 | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/data/test329 b/tests/data/test329 index 81b8383c1..67aac4baa 100644 --- a/tests/data/test329 +++ b/tests/data/test329 @@ -33,6 +33,9 @@ moo <file name="log/jar329.txt" mode="text"> .host.foo.com TRUE /we/want/ FALSE 2147483647 test no </file> +<file name="log/jar329-2.txt" mode="text"> +.host.foo.com TRUE /we/want/ FALSE 2147483647 tester yes +</file> <server> http </server> @@ -46,7 +49,7 @@ HTTP cookie with Max-Age=0 TZ=GMT </setenv> <command> -http://%HOSTIP:%HTTPPORT/we/want/329 -b log/jar329.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/3290002 +http://%HOSTIP:%HTTPPORT/we/want/329 -b log/jar329.txt -b log/jar329-2.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/3290002 </command> </client> @@ -57,12 +60,13 @@ GET /we/want/329 HTTP/1.1 Host: host.foo.com
User-Agent: curl/%VERSION
Accept: */*
-Cookie: test=no
+Cookie: tester=yes; test=no
GET /we/want/3290002 HTTP/1.1
Host: host.foo.com
User-Agent: curl/%VERSION
Accept: */*
+Cookie: tester=yes
</protocol> </verify> diff --git a/tests/data/test6 b/tests/data/test6 index efd15a901..bbd67cbf8 100644 --- a/tests/data/test6 +++ b/tests/data/test6 @@ -29,7 +29,7 @@ http HTTP with simple cookie send </name> <command> -http://%HOSTIP:%HTTPPORT/we/want/that/page/6 -b "name=contents;name2=content2" +http://%HOSTIP:%HTTPPORT/we/want/that/page/6 -b "name=contents;name2=content2" -b name3=content3 </command> </client> @@ -40,7 +40,7 @@ GET /we/want/that/page/6 HTTP/1.1 Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
-Cookie: name=contents;name2=content2
+Cookie: name=contents;name2=content2;name3=content3
</protocol> </verify> |