test392 (902B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 cookies 7 secure 8 </keywords> 9 </info> 10 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Content-Length: 4 17 Content-Type: text/html 18 Funny-head: yesyes 19 Set-Cookie: foobar=name; path=/; secure 20 21 boo 22 </data> 23 </reply> 24 25 # Client-side 26 <client> 27 <server> 28 http 29 </server> 30 <name> 31 HTTP secure cookies over localhost 32 </name> 33 34 <setenv> 35 TZ=GMT 36 </setenv> 37 <command> 38 -4 http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTNUMBER 39 </command> 40 <features> 41 cookies 42 local-http 43 </features> 44 </client> 45 46 # Verify data after the test has been "shot" 47 <verify> 48 <protocol> 49 GET /%TESTNUMBER HTTP/1.1 50 Host: localhost:%HTTPPORT 51 User-Agent: curl/%VERSION 52 Accept: */* 53 54 GET /%TESTNUMBER HTTP/1.1 55 Host: localhost:%HTTPPORT 56 User-Agent: curl/%VERSION 57 Accept: */* 58 Cookie: foobar=name 59 60 </protocol> 61 </verify> 62 </testcase>