made the cookie tests 61 and 62 test httponly cookies, both receiving in

headers and reading from cookie-jar
This commit is contained in:
Daniel Stenberg 2009-05-10 18:02:37 +00:00
parent b8c438f22d
commit c0b5d378dc
2 changed files with 5 additions and 3 deletions

View 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
Content-Type: text/html
Funny-head: yesyes
Set-Cookie: test=yes; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035
Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035
SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 2 11:56:27 GMT 2035
Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure
Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure
@ -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>

View 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