Debian Codegraph @

curl/tests/data/test27

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