• 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 Mooo swsclose
13Connection: close
14Set-Cookie: thewinneris=nowayyouwin; path=/;
15Content-Length: 8
16
17*flopp*
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26 <name>
27Get same cookie page several times
28 </name>
29 <command>
30"http://%HOSTIP:%HTTPPORT/want/{%TESTNUMBER,%TESTNUMBER,%TESTNUMBER}" -b none
31</command>
32</client>
33
34# Verify data after the test has been "shot"
35<verify>
36<protocol>
37GET /want/%TESTNUMBER HTTP/1.1
38Host: %HOSTIP:%HTTPPORT
39User-Agent: curl/%VERSION
40Accept: */*
41
42GET /want/%TESTNUMBER HTTP/1.1
43Host: %HOSTIP:%HTTPPORT
44User-Agent: curl/%VERSION
45Accept: */*
46Cookie: thewinneris=nowayyouwin
47
48GET /want/%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52Cookie: thewinneris=nowayyouwin
53
54</protocol>
55</verify>
56</testcase>
57