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