5ae2ffd4fd4bc30eb22d393d138063979b32eacc
[platform/upstream/curl.git] / tests / data / test27
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 cookies
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 200 Mooo swsclose
13 Connection: close
14 Set-Cookie: path=/; thewinneris=nowayyouwin;
15 Content-Length: 8
16
17 *flopp*
18 </data>
19 </reply>
20
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26  <name>
27 Get same cookie page several times
28  </name>
29  <command>
30 "http://%HOSTIP:%HTTPPORT/want/{27,27,27}" -b none
31 </command>
32 </client>
33
34 # Verify data after the test has been "shot"
35 <verify>
36 <strip>
37 ^User-Agent: curl.*
38 </strip>
39 <protocol>
40 GET /want/27 HTTP/1.1\r
41 Host: %HOSTIP:%HTTPPORT\r
42 Accept: */*\r
43 \r
44 GET /want/27 HTTP/1.1\r
45 Host: %HOSTIP:%HTTPPORT\r
46 Accept: */*\r
47 Cookie: thewinneris=nowayyouwin\r
48 \r
49 GET /want/27 HTTP/1.1\r
50 Host: %HOSTIP:%HTTPPORT\r
51 Accept: */*\r
52 Cookie: thewinneris=nowayyouwin\r
53 \r
54 </protocol>
55 </verify>
56 </testcase>