xref: /aosp_15_r20/external/curl/tests/data/test1561 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerHTTPS
5*6236dae4SAndroid Build Coastguard WorkerHTTP
6*6236dae4SAndroid Build Coastguard WorkerHTTP GET
7*6236dae4SAndroid Build Coastguard Workercookies
8*6236dae4SAndroid Build Coastguard Workercookiejar
9*6236dae4SAndroid Build Coastguard WorkerHTTP replaced headers
10*6236dae4SAndroid Build Coastguard Worker</keywords>
11*6236dae4SAndroid Build Coastguard Worker</info>
12*6236dae4SAndroid Build Coastguard Worker
13*6236dae4SAndroid Build Coastguard Worker# Server-side
14*6236dae4SAndroid Build Coastguard Worker<reply>
15*6236dae4SAndroid Build Coastguard Worker<data1>
16*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
17*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
18*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
19*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: super=secret; domain=example.com; path=/%TESTNUMBER; secure;
20*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: supersuper=secret; domain=example.com; path=/%TESTNUMBER/login/; secure;
21*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Secure-SID=12345; Domain=example.com
22*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __SecURE-SID=12346; Secure; Domain=example.com
23*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: supersupersuper=secret; __Secure-SID=12346; Secure; Domain=example.com
24*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=22345
25*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=22346; Secure
26*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=22347; Domain=example.com
27*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=22348; Domain=example.com; Path=/
28*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=22349; Secure; Domain=example.com; Path=/
29*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=12346; Secure; Path=/
30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard Workernomnom
33*6236dae4SAndroid Build Coastguard Worker</data1>
34*6236dae4SAndroid Build Coastguard Worker<data2>
35*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
36*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
37*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
38*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER; httponly;
39*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER/; httponly;
40*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: super=plain; domain=example.com; path=/15; httponly;
41*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: public=yes; domain=example.com; path=/foo;
42*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login/en;
43*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login;
44*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: secureoverhttp=yes; domain=example.com; path=/%TESTNUMBER; secure;
45*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Secure-SID=22345; Domain=example.com
46*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __SecuRE-SID=22346; Secure; Domain=example.com
47*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32345
48*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32346; Secure
49*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32347; Domain=example.com
50*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32348; Domain=example.com; Path=/
51*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32349; Secure; Domain=example.com; Path=/
52*6236dae4SAndroid Build Coastguard WorkerSet-Cookie: __Host-SID=32350; Secure; Path=/
53*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7
54*6236dae4SAndroid Build Coastguard Worker
55*6236dae4SAndroid Build Coastguard Workernomnom
56*6236dae4SAndroid Build Coastguard Worker</data2>
57*6236dae4SAndroid Build Coastguard Worker</reply>
58*6236dae4SAndroid Build Coastguard Worker
59*6236dae4SAndroid Build Coastguard Worker# Client-side
60*6236dae4SAndroid Build Coastguard Worker<client>
61*6236dae4SAndroid Build Coastguard Worker<features>
62*6236dae4SAndroid Build Coastguard WorkerSSL
63*6236dae4SAndroid Build Coastguard Worker</features>
64*6236dae4SAndroid Build Coastguard Worker<server>
65*6236dae4SAndroid Build Coastguard Workerhttp
66*6236dae4SAndroid Build Coastguard Workerhttps
67*6236dae4SAndroid Build Coastguard Worker</server>
68*6236dae4SAndroid Build Coastguard Worker<killserver>
69*6236dae4SAndroid Build Coastguard Workerhttps
70*6236dae4SAndroid Build Coastguard Worker</killserver>
71*6236dae4SAndroid Build Coastguard Worker<name>
72*6236dae4SAndroid Build Coastguard WorkerCookies set over HTTP can't override secure ones
73*6236dae4SAndroid Build Coastguard Worker</name>
74*6236dae4SAndroid Build Coastguard Worker<command>
75*6236dae4SAndroid Build Coastguard Worker-k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com"  http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com"
76*6236dae4SAndroid Build Coastguard Worker</command>
77*6236dae4SAndroid Build Coastguard Worker</client>
78*6236dae4SAndroid Build Coastguard Worker<verify>
79*6236dae4SAndroid Build Coastguard Worker<protocol>
80*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER0001 HTTP/1.1
81*6236dae4SAndroid Build Coastguard WorkerHost: www.example.com
82*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
83*6236dae4SAndroid Build Coastguard WorkerAccept: */*
84*6236dae4SAndroid Build Coastguard Worker
85*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER0002 HTTP/1.1
86*6236dae4SAndroid Build Coastguard WorkerHost: www.example.com
87*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
88*6236dae4SAndroid Build Coastguard WorkerAccept: */*
89*6236dae4SAndroid Build Coastguard Worker
90*6236dae4SAndroid Build Coastguard Worker</protocol>
91*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
92*6236dae4SAndroid Build Coastguard Worker# Netscape HTTP Cookie File
93*6236dae4SAndroid Build Coastguard Worker# https://curl.se/docs/http-cookies.html
94*6236dae4SAndroid Build Coastguard Worker# This file was generated by libcurl! Edit at your own risk.
95*6236dae4SAndroid Build Coastguard Worker
96*6236dae4SAndroid Build Coastguard Worker.example.com	TRUE	/foo	FALSE	0	public	yes
97*6236dae4SAndroid Build Coastguard Worker#HttpOnly_.example.com	TRUE	/15	FALSE	0	super	plain
98*6236dae4SAndroid Build Coastguard Workerwww.example.com	FALSE	/	TRUE	0	__Host-SID	12346
99*6236dae4SAndroid Build Coastguard Worker.example.com	TRUE	/	TRUE	0	supersupersuper	secret
100*6236dae4SAndroid Build Coastguard Worker.example.com	TRUE	/	TRUE	0	__SecURE-SID	12346
101*6236dae4SAndroid Build Coastguard Worker.example.com	TRUE	/%TESTNUMBER/login/	TRUE	0	supersuper	secret
102*6236dae4SAndroid Build Coastguard Worker.example.com	TRUE	/1561	TRUE	0	super	secret
103*6236dae4SAndroid Build Coastguard Worker</file>
104*6236dae4SAndroid Build Coastguard Worker
105*6236dae4SAndroid Build Coastguard Worker</verify>
106*6236dae4SAndroid Build Coastguard Worker
107*6236dae4SAndroid Build Coastguard Worker</testcase>
108