aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-31 12:21:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-31 12:21:57 +0000
commita62e155ca4d9e1db640d897bfbabbd4bf865b777 (patch)
tree1a738379d6c4cc2df907d88c4533d83cb847652e /tests
parentb620e62f0f4e90f4d1338117c67580a6f5f37377 (diff)
- Niklas Angebrand made the cookie support in libcurl properly deal with the
"HttpOnly" feature introduced by Microsoft and apparently also supported by Firefox: http://msdn2.microsoft.com/en-us/library/ms533046.aspx . HttpOnly is now supported when received from servers in HTTP headers, when written to cookie jars and when read from existing cookie jars.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test312
-rw-r--r--tests/data/test464
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/data/test31 b/tests/data/test31
index a0a9ce9b0..444a9b13e 100644
--- a/tests/data/test31
+++ b/tests/data/test31
@@ -26,6 +26,7 @@ Set-Cookie: nodomain=value; expires=Fri Feb 2 11:56:27 GMT 2035
Set-Cookie: novalue; domain=reallysilly
Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030
Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030
+Set-Cookie: magic=yessir; path=/silly/; HttpOnly
boo
</data>
@@ -69,6 +70,7 @@ Accept: */*
.127.0.0.1 TRUE /silly/ FALSE 0 ismatch this
.127.0.0.1 TRUE / FALSE 0 partmatch present
127.0.0.1 FALSE /we/want/ FALSE 2054030187 nodomain value
+#HttpOnly_127.0.0.1 FALSE /silly/ FALSE 0 magic yessir
</file>
</verify>
</testcase>
diff --git a/tests/data/test46 b/tests/data/test46
index bc0821904..56ad85958 100644
--- a/tests/data/test46
+++ b/tests/data/test46
@@ -51,6 +51,7 @@ TZ=GMT
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
www.loser.com FALSE / FALSE 1139150993 UID 99
%HOSTIP FALSE / FALSE 1439150993 mooo indeed
+#HttpOnly_%HOSTIP FALSE / FALSE 1439150993 mooo2 indeed2
%HOSTIP FALSE / FALSE 0 empty
</file>
</client>
@@ -64,7 +65,7 @@ www.loser.com FALSE / FALSE 1139150993 UID 99
GET /want/46 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
-Cookie: empty=; mooo=indeed
+Cookie: empty=; mooo2=indeed2; mooo=indeed
</protocol>
<file name="log/jar46" mode="text">
@@ -75,6 +76,7 @@ Cookie: empty=; mooo=indeed
www.fake.come FALSE / FALSE 1022144953 cookiecliente si
www.loser.com FALSE / FALSE 1139150993 UID 99
%HOSTIP FALSE / FALSE 1439150993 mooo indeed
+#HttpOnly_%HOSTIP FALSE / FALSE 1439150993 mooo2 indeed2
%HOSTIP FALSE / FALSE 0 empty
%HOSTIP FALSE / FALSE 2054030187 ckyPersistent permanent
%HOSTIP FALSE / FALSE 0 ckySession temporary