test1166 (860B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 followlocation 7 cookies 8 </keywords> 9 </info> 10 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Set-Cookie: trackyou=want; path=/ 18 Content-Length: 68 19 20 This server reply is for testing a Location: following with cookies 21 </data> 22 </reply> 23 24 # Client-side 25 <client> 26 <server> 27 http 28 </server> 29 <name> 30 HTTP response with cookies but not receiving! 31 </name> 32 <command> 33 http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER 34 </command> 35 </client> 36 37 # Verify data after the test has been "shot" 38 <verify> 39 <protocol> 40 GET /want/%TESTNUMBER HTTP/1.1 41 Host: %HOSTIP:%HTTPPORT 42 User-Agent: curl/%VERSION 43 Accept: */* 44 45 GET /want/%TESTNUMBER HTTP/1.1 46 Host: %HOSTIP:%HTTPPORT 47 User-Agent: curl/%VERSION 48 Accept: */* 49 50 </protocol> 51 </verify> 52 </testcase>