xref: /curl/tests/data/test392 (revision 3fd80c7b)
1<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<features>
44cookies
45</features>
46</client>
47
48# Verify data after the test has been "shot"
49<verify>
50<protocol>
51GET /%TESTNUMBER HTTP/1.1
52Host: localhost:%HTTPPORT
53User-Agent: curl/%VERSION
54Accept: */*
55
56GET /%TESTNUMBER HTTP/1.1
57Host: localhost:%HTTPPORT
58User-Agent: curl/%VERSION
59Accept: */*
60Cookie: foobar=name
61
62</protocol>
63</verify>
64</testcase>
65