From 1b55d270ad3d4473b2fd46481478275e47c60eaf Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Sun, 13 May 2018 01:23:10 +0200 Subject: cookies: do not take cookie name as a parameter RFC 6265 section 4.2.1 does not set restrictions on cookie names. This is a follow-up to commit 7f7fcd0. Also explicitly check proper syntax of cookie name/value pair. New test 1155 checks that cookie names are not reserved words. Reported-By: anshnd at github Fixes #2564 Closes #2566 --- tests/data/test1155 | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tests/data/test1155 (limited to 'tests/data/test1155') diff --git a/tests/data/test1155 b/tests/data/test1155 new file mode 100644 index 000000000..0eae2a9d4 --- /dev/null +++ b/tests/data/test1155 @@ -0,0 +1,54 @@ + + + +HTTP +HTTP GET +cookies + + + +# Server-side + + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 0 +Set-Cookie: domain=value;secure;path=/ + + + + +# Client-side + + +http + + +HTTP cookie with parameter word as name + + +http://%HOSTIP:%HTTPPORT/1155 -c log/cookies1155.txt + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1155 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +# Netscape HTTP Cookie File +# https://curl.haxx.se/docs/http-cookies.html +# This file was generated by libcurl! Edit at your own risk. + +127.0.0.1 FALSE / TRUE 0 domain value + + + -- cgit v1.2.3