blob: 92396d9f66ed35daaf6be120957e5a963dc575d6 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<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
18
19boo
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28 <name>
29HTTP, send cookies when using custom Host:
30 </name>
31 <command>
32http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER?hoge=fuga -b log/jar%TESTNUMBER.txt -H "Host: www.host.foo.com"
33</command>
34<file name="log/jar%TESTNUMBER.txt">
35# Netscape HTTP Cookie File
36# https://curl.se/docs/http-cookies.html
37# This file was generated by libcurl! Edit at your own risk.
38
39#HttpOnly_.foo.com TRUE /we/want/ FALSE 2147483647 test yes
40.host.foo.com TRUE /we/want/ FALSE 2147483647 test2 yes
41.fake.host.foo.com TRUE /we/want/ FALSE 2147483647 test4 yes
42
43.foo.com TRUE /moo TRUE 0 test3 maybe
44</file>
45</client>
46
47# Verify data after the test has been "shot"
48<verify>
49<protocol>
50GET /we/want/%TESTNUMBER HTTP/1.1
51Host: www.host.foo.com
52User-Agent: curl/%VERSION
53Accept: */*
54Cookie: test2=yes; test=yes
55
56GET /we/want/%TESTNUMBER?hoge=fuga HTTP/1.1
57Host: www.host.foo.com
58User-Agent: curl/%VERSION
59Accept: */*
60Cookie: test2=yes; test=yes
61
62</protocol>
63</verify>
64</testcase>