1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6cookies 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data> 13HTTP/1.1 200 OK 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Type: text/html 17Content-Length: 4 18Set-Cookie: moo=yes; 19 20hej 21</data> 22<data2> 23HTTP/1.1 200 OK 24Date: Thu, 09 Nov 2010 14:49:00 GMT 25Server: test-server/fake 26Content-Type: text/html 27Content-Length: 0 28Funny-head: yesyes swsclose 29 30</data2> 31</reply> 32 33# Client-side 34<client> 35<server> 36http 37</server> 38 <name> 39HTTP with cookie using host name 'moo' 40 </name> 41 <command> 42-x http://%HOSTIP:%HTTPPORT http://moo/we/want/331 -b none http://moo/we/want/3310002 43</command> 44</client> 45 46# Verify data after the test has been "shot" 47<verify> 48<strip> 49^User-Agent:.* 50</strip> 51<protocol> 52GET http://moo/we/want/331 HTTP/1.1 53Host: moo 54Accept: */* 55Proxy-Connection: Keep-Alive 56 57GET http://moo/we/want/3310002 HTTP/1.1 58Host: moo 59Accept: */* 60Proxy-Connection: Keep-Alive 61Cookie: moo=yes 62 63</protocol> 64</verify> 65</testcase> 66