Revert "Update to 7.40.1"
[platform/upstream/curl.git] / tests / data / test61
index 44cf959..d2de279 100644 (file)
@@ -6,6 +6,7 @@ HTTP GET
 cookies
 cookiejar
 HTTP replaced headers
+httponly
 </keywords>
 </info>
 # Server-side
@@ -16,11 +17,12 @@ 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=Tue Feb 1 11:56:27 GMT 2038\r
-Set-Cookie: test2=yes; domain=host.foo.com; expires=Tue Feb 1 11:56:27 GMT 2038\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
 Set-Cookie: test5=name; domain=anything.com; path=/ ; secure\r
+Set-Cookie: fake=fooledyou; domain=..com; path=/;\r
 Content-Length: 4\r
 \r
 boo
@@ -35,6 +37,12 @@ http
  <name>
 HTTP with various cookies and custom Host:
  </name>
+# Explicitly set the time zone to a known good one, in case the user is
+# using one of the 'right' zones that take into account leap seconds
+# which causes the cookie expiry times to be different.
+<setenv>
+TZ=GMT
+</setenv>
  <command>
 http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
 </command>
@@ -53,11 +61,11 @@ Host: www.host.foo.com
 </protocol>
 <file name="log/jar61.txt" mode="text">
 # Netscape HTTP Cookie File
-# http://curlm.haxx.se/rfc/cookie_spec.html
+# http://curl.haxx.se/docs/http-cookies.html
 # This file was generated by libcurl! Edit at your own risk.
 
-.foo.com       TRUE    /we/want/       FALSE   2147483647      test    yes
-.host.foo.com  TRUE    /we/want/       FALSE   2147483647      test2   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>
 </verify>