diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-01-09 10:11:58 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-01-10 10:31:06 +0100 |
commit | afeb8d99022255279ee63125f2fa0f69810ce9c3 (patch) | |
tree | bfb795c8cab8f4e6357ce46e9144132e160e5e84 /tests/data/test1562 | |
parent | 4c35574bb785ce44d72db5483541c9da2d885705 (diff) |
cookies: allow secure override when done over HTTPS
Added test 1562 to verify.
Reported-by: Jeroen Ooms
Fixes #3445
Closes #3450
Diffstat (limited to 'tests/data/test1562')
-rw-r--r-- | tests/data/test1562 | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/data/test1562 b/tests/data/test1562 new file mode 100644 index 000000000..59cb9ccba --- /dev/null +++ b/tests/data/test1562 @@ -0,0 +1,72 @@ +<testcase> +<info> +<keywords> +HTTPS +HTTP +HTTP GET +cookies +HTTP replaced headers +</keywords> +</info> + +# Server-side +<reply> +<data1> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Set-Cookie: foo=123; path=/; secure; +Content-Length: 7 + +nomnom +</data1> +<data2> +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Set-Cookie: foo=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0; Path=/ +Content-Length: 7 + +nomnom +</data2> +</reply> + +# Client-side +<client> +<features> +SSL +</features> +<server> +http +https +</server> +<name> +Expire secure cookies over HTTPS +</name> +<command> +-k https://%HOSTIP:%HTTPSPORT/15620001 -H "Host: www.example.com" https://%HOSTIP:%HTTPSPORT/15620002 -b "non-existing" https://%HOSTIP:%HTTPSPORT/15620001 +</command> +</client> +<verify> +<strip> +^User-Agent:.* +</strip> +<protocol> +GET /15620001 HTTP/1.1
+Host: www.example.com
+Accept: */*
+
+GET /15620002 HTTP/1.1
+Host: www.example.com
+Accept: */*
+Cookie: foo=123
+
+GET /15620001 HTTP/1.1
+Host: www.example.com
+Accept: */*
+
+</protocol> + +</verify> + +</testcase> |