test7 (1199B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 cookies 7 header dump 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 Content-Type: text/html 18 Funny-head: yesyes swsclose 19 Set-Cookie: foobar=name; domain=127.0.0.1; path=/; 20 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 21 Set-Cookie: partmatch=present; domain=.0.0.1; path=/; 22 23 </data> 24 </reply> 25 26 # Client-side 27 <client> 28 <server> 29 http 30 </server> 31 <name> 32 HTTP with cookie parser and header recording 33 </name> 34 <command> 35 http://%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> 42 GET /we/want/%TESTNUMBER HTTP/1.1 43 Host: %HOSTIP:%HTTPPORT 44 User-Agent: curl/%VERSION 45 Accept: */* 46 47 </protocol> 48 <file name="%LOGDIR/heads%TESTNUMBER.txt"> 49 HTTP/1.1 200 OK 50 Date: Tue, 09 Nov 2010 14:49:00 GMT 51 Server: test-server/fake 52 Content-Type: text/html 53 Funny-head: yesyes swsclose 54 Set-Cookie: foobar=name; domain=127.0.0.1; path=/; 55 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; 56 Set-Cookie: partmatch=present; domain=.0.0.1; path=/; 57 58 </file> 59 </verify> 60 </testcase>