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: Tue, 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/%TESTNUMBER -b none -D %LOGDIR/heads%TESTNUMBER.txt 36</command> 37</client> 38 39# Verify data after the test has been "shot" 40<verify> 41<protocol> 42GET /we/want/%TESTNUMBER HTTP/1.1 43Host: %HOSTIP:%HTTPPORT 44User-Agent: curl/%VERSION 45Accept: */* 46 47</protocol> 48<file name="%LOGDIR/heads%TESTNUMBER.txt"> 49HTTP/1.1 200 OK 50Date: Tue, 09 Nov 2010 14:49:00 GMT 51Server: test-server/fake 52Content-Type: text/html 53Funny-head: yesyes swsclose 54Set-Cookie: foobar=name; domain=127.0.0.1; path=/; 55Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 56Set-Cookie: partmatch=present; domain=.0.0.1; path=/; 57 58</file> 59</verify> 60</testcase> 61