blob: 24430c1311fd41ed8f2f4f190db6da14c9841791 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6cookies
7secure
8</keywords>
9</info>
10
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Content-Length: 4
17Content-Type: text/html
18Funny-head: yesyes
19Set-Cookie: foobar=name; path=/; secure
20
21boo
22</data>
23</reply>
24
25# Client-side
26<client>
27<server>
28http
29</server>
30 <name>
31HTTP secure cookies over localhost
32 </name>
33
34<setenv>
35TZ=GMT
36</setenv>
37 <command>
38http://localhost:%HTTPPORT/%TESTNUMBER -b none http://localhost:%HTTPPORT/%TESTNUMBER
39</command>
40<precheck>
41perl -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>
48GET /%TESTNUMBER HTTP/1.1
49Host: localhost:%HTTPPORT
50User-Agent: curl/%VERSION
51Accept: */*
52
53GET /%TESTNUMBER HTTP/1.1
54Host: localhost:%HTTPPORT
55User-Agent: curl/%VERSION
56Accept: */*
57Cookie: foobar=name
58
59</protocol>
60</verify>
61</testcase>