test1218 (1228B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP proxy 7 cookies 8 </keywords> 9 </info> 10 11 # This test is very similar to 1216, only that it sets the cookies from the 12 # first site instead of reading from a file 13 <reply> 14 <data> 15 HTTP/1.1 200 OK 16 Date: Tue, 25 Sep 2001 19:37:44 GMT 17 Set-Cookie: bug=fixed; domain=.example.fake; 18 Content-Length: 21 19 20 This server says moo 21 </data> 22 </reply> 23 24 # Client-side 25 <client> 26 <server> 27 http 28 </server> 29 <name> 30 HTTP cookies and domains with same prefix 31 </name> 32 <command> 33 http://example.fake/c/%TESTNUMBER http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b nonexisting -x %HOSTIP:%HTTPPORT 34 </command> 35 <features> 36 cookies 37 proxy 38 </features> 39 </client> 40 41 # Verify data after the test has been "shot" 42 <verify> 43 <protocol> 44 GET http://example.fake/c/%TESTNUMBER HTTP/1.1 45 Host: example.fake 46 User-Agent: curl/%VERSION 47 Accept: */* 48 Proxy-Connection: Keep-Alive 49 50 GET http://example.fake/c/%TESTNUMBER HTTP/1.1 51 Host: example.fake 52 User-Agent: curl/%VERSION 53 Accept: */* 54 Proxy-Connection: Keep-Alive 55 Cookie: bug=fixed 56 57 GET http://bexample.fake/c/%TESTNUMBER HTTP/1.1 58 Host: bexample.fake 59 User-Agent: curl/%VERSION 60 Accept: */* 61 Proxy-Connection: Keep-Alive 62 63 </protocol> 64 </verify> 65 </testcase>