xref: /curl/tests/data/test1258 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP replaced headers
7cookies
8httponly
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.0 200 OK swsclose
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Content-Type: text/html
18Set-Cookie: I-am=here; domain=localhost;
19
20boo
21</data>
22</reply>
23
24# Client-side
25<client>
26<server>
27http
28</server>
29<name>
30HTTP, use cookies with localhost
31</name>
32<command>
33http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want?hoge=fuga -b non-existing -H "Host: localhost"
34</command>
35<features>
36cookies
37</features>
38</client>
39
40# Verify data after the test has been "shot"
41<verify>
42<protocol>
43GET /we/want/%TESTNUMBER HTTP/1.1
44Host: localhost
45User-Agent: curl/%VERSION
46Accept: */*
47
48GET /we/want?hoge=fuga HTTP/1.1
49Host: localhost
50User-Agent: curl/%VERSION
51Accept: */*
52Cookie: I-am=here
53
54</protocol>
55</verify>
56</testcase>
57