1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7header dump
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Type: text/html
18Funny-head: yesyes swsclose
19Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
20Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
21Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
22
23</data>
24</reply>
25
26# Client-side
27<client>
28<server>
29http
30</server>
31 <name>
32HTTP with cookie parser and header recording
33 </name>
34 <command>
35http://%HOSTIP:%HTTPPORT/we/want/7 -b none -D log/heads7.txt
36</command>
37</client>
38
39# Verify data after the test has been "shot"
40<verify>
41<strip>
42^User-Agent:.*
43</strip>
44<protocol>
45GET /we/want/7 HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47Accept: */*
48
49</protocol>
50<file name="log/heads7.txt">
51HTTP/1.1 200 OK
52Date: Thu, 09 Nov 2010 14:49:00 GMT
53Server: test-server/fake
54Content-Type: text/html
55Funny-head: yesyes swsclose
56Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
57Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
58Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
59
60</file>
61</verify>
62</testcase>
63