]> granicus.if.org Git - curl/commitdiff
made the cookie tests 61 and 62 test httponly cookies, both receiving in
authorDaniel Stenberg <daniel@haxx.se>
Sun, 10 May 2009 18:02:37 +0000 (18:02 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 May 2009 18:02:37 +0000 (18:02 +0000)
headers and reading from cookie-jar

tests/data/test61
tests/data/test62

index 06c08788191c582696f67486fe60cf9ed9285816..f2a6a4ee7b61cbdba5d973a2f62185cfe8ad36c0 100644 (file)
@@ -6,6 +6,7 @@ HTTP GET
 cookies
 cookiejar
 HTTP replaced headers
+httponly
 </keywords>
 </info>
 # Server-side
@@ -16,7 +17,7 @@ Date: Thu, 09 Nov 2010 14:49:00 GMT
 Server: test-server/fake\r
 Content-Type: text/html\r
 Funny-head: yesyes\r
-Set-Cookie: test=yes; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035\r
+Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035\r
 SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 2 11:56:27 GMT 2035\r
 Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure\r
 Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure\r
@@ -62,7 +63,7 @@ Host: www.host.foo.com
 # http://curl.haxx.se/rfc/cookie_spec.html
 # This file was generated by libcurl! Edit at your own risk.
 
-.foo.com       TRUE    /we/want/       FALSE   2054030187      test    yes
+#HttpOnly_.foo.com     TRUE    /we/want/       FALSE   2054030187      test    yes
 .host.foo.com  TRUE    /we/want/       FALSE   2054030187      test2   yes
 .foo.com       TRUE    /moo    TRUE    0       test3   maybe
 </file>
index db6627250d930145a94ca919eac331e60340e89d..99eca1ecc6d0b61279b48bd8e861ea12b30bbbc8 100644 (file)
@@ -5,6 +5,7 @@ HTTP
 HTTP GET
 HTTP replaced headers
 cookies
+httponly
 </keywords>
 </info>
 
@@ -35,7 +36,7 @@ http://%HOSTIP:%HTTPPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
 # http://curl.haxx.se/rfc/cookie_spec.html
 # This file was generated by libcurl! Edit at your own risk.
 
-.foo.com       TRUE    /we/want/       FALSE   2054030187      test    yes
+#HttpOnly_.foo.com     TRUE    /we/want/       FALSE   2054030187      test    yes
 .host.foo.com  TRUE    /we/want/       FALSE   2054030187      test2   yes
 .fake.host.foo.com     TRUE    /we/want/       FALSE   2054030187      test4   yes