1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 cookies 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Thu, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Content-Type: text/html 17 Content-Length: 4 18 Set-Cookie: moo=yes; 19 20 hej 21 </data> 22 <data2> 23 HTTP/1.1 200 OK 24 Date: Thu, 09 Nov 2010 14:49:00 GMT 25 Server: test-server/fake 26 Content-Type: text/html 27 Content-Length: 0 28 Funny-head: yesyes swsclose 29 30 </data2> 31 </reply> 32 33 # Client-side 34 <client> 35 <server> 36 http 37 </server> 38 <name> 39 HTTP 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> 52 GET http://moo/we/want/331 HTTP/1.1 53 Host: moo 54 Accept: */* 55 Proxy-Connection: Keep-Alive 56 57 GET http://moo/we/want/3310002 HTTP/1.1 58 Host: moo 59 Accept: */* 60 Proxy-Connection: Keep-Alive 61 Cookie: moo=yes 62 63 </protocol> 64 </verify> 65 </testcase> 66