• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7</keywords>
8</info>
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 OK
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Content-Type: text/html
16Funny-head: yesyes
17Set-Cookie: test=yes; path=/we/want/; domain=.host.foo.com; Max-Age=0;
18Content-Length: 4
19
20boo
21</data>
22<data2>
23HTTP/1.1 200 OK
24Funny-head: yesyes
25Content-Length: 4
26
27moo
28</data2>
29</reply>
30
31# Client-side
32<client>
33<file name="log/jar329.txt" mode="text">
34.host.foo.com	TRUE	/we/want/	FALSE	2147483647	test	no
35</file>
36<server>
37http
38</server>
39 <name>
40HTTP cookie with Max-Age=0
41 </name>
42# Explicitly set the time zone to a known good one, in case the user is
43# using one of the 'right' zones that take into account leap seconds
44# which causes the cookie expiry times to be different.
45<setenv>
46TZ=GMT
47</setenv>
48 <command>
49http://%HOSTIP:%HTTPPORT/we/want/329 -b log/jar329.txt -H "Host: host.foo.com" http://%HOSTIP:%HTTPPORT/we/want/3290002
50</command>
51</client>
52
53# Verify data after the test has been "shot"
54<verify>
55<protocol>
56GET /we/want/329 HTTP/1.1
57Host: host.foo.com
58User-Agent: curl/%VERSION
59Accept: */*
60Cookie: test=no
61
62GET /we/want/3290002 HTTP/1.1
63Host: host.foo.com
64User-Agent: curl/%VERSION
65Accept: */*
66
67</protocol>
68</verify>
69</testcase>
70