| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 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 | http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTNUMBER | 
 | 39 | </command> | 
 | 40 | <precheck> | 
 | 41 | perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );" | 
 | 42 | </precheck> | 
 | 43 | </client> | 
 | 44 |  | 
 | 45 | # Verify data after the test has been "shot" | 
 | 46 | <verify> | 
 | 47 | <protocol> | 
 | 48 | GET /%TESTNUMBER HTTP/1.1
 | 
 | 49 | Host: localhost:%HTTPPORT
 | 
 | 50 | User-Agent: curl/%VERSION
 | 
 | 51 | Accept: */*
 | 
 | 52 | 
 | 
 | 53 | GET /%TESTNUMBER HTTP/1.1
 | 
 | 54 | Host: localhost:%HTTPPORT
 | 
 | 55 | User-Agent: curl/%VERSION
 | 
 | 56 | Accept: */*
 | 
 | 57 | Cookie: foobar=name
 | 
 | 58 | 
 | 
 | 59 | </protocol> | 
 | 60 | </verify> | 
 | 61 | </testcase> |