a7e56a7975926de20a1981da5a9dd70de7e23b1c
[platform/upstream/curl.git] / tests / data / test1228
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 cookies
8 cookie path
9 </keywords>
10 </info>
11 <reply>
12 <data>
13 HTTP/1.1 200 OK
14 Date: Tue, 25 Sep 2001 19:37:44 GMT
15 Set-Cookie: path1=root; domain=.example.fake; path=/;
16 Set-Cookie: path2=depth1; domain=.example.fake; path=/hoge;
17 Content-Length: 34
18
19 This server says cookie path test
20 </data>
21 </reply>
22
23 # Client-side
24 <client>
25 <server>
26 http
27 </server>
28  <name>
29 HTTP cookie path match
30  </name>
31  <command>
32 http://example.fake/hoge/1228 http://example.fake/hogege/ -b nonexisting -x %HOSTIP:%HTTPPORT
33 </command>
34 </client>
35
36 # Verify data after the test has been "shot"
37 <verify>
38 <strip>
39 ^User-Agent:.*
40 </strip>
41 <protocol>
42 GET http://example.fake/hoge/1228 HTTP/1.1\r
43 Host: example.fake\r
44 Accept: */*\r
45 Proxy-Connection: Keep-Alive\r
46 \r
47 GET http://example.fake/hogege/ HTTP/1.1\r
48 Host: example.fake\r
49 Accept: */*\r
50 Proxy-Connection: Keep-Alive\r
51 Cookie: path1=root\r
52 \r
53 </protocol>
54 </verify>
55 </testcase>