xref: /third_party/curl/tests/data/test1561 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTPS
513498266Sopenharmony_ciHTTP
613498266Sopenharmony_ciHTTP GET
713498266Sopenharmony_cicookies
813498266Sopenharmony_cicookiejar
913498266Sopenharmony_ciHTTP replaced headers
1013498266Sopenharmony_ci</keywords>
1113498266Sopenharmony_ci</info>
1213498266Sopenharmony_ci
1313498266Sopenharmony_ci# Server-side
1413498266Sopenharmony_ci<reply>
1513498266Sopenharmony_ci<data1>
1613498266Sopenharmony_ciHTTP/1.1 200 OK
1713498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1813498266Sopenharmony_ciServer: test-server/fake
1913498266Sopenharmony_ciSet-Cookie: super=secret; domain=example.com; path=/%TESTNUMBER; secure;
2013498266Sopenharmony_ciSet-Cookie: supersuper=secret; domain=example.com; path=/%TESTNUMBER/login/; secure;
2113498266Sopenharmony_ciSet-Cookie: __Secure-SID=12345; Domain=example.com
2213498266Sopenharmony_ciSet-Cookie: __SecURE-SID=12346; Secure; Domain=example.com
2313498266Sopenharmony_ciSet-Cookie: supersupersuper=secret; __Secure-SID=12346; Secure; Domain=example.com
2413498266Sopenharmony_ciSet-Cookie: __Host-SID=22345
2513498266Sopenharmony_ciSet-Cookie: __Host-SID=22346; Secure
2613498266Sopenharmony_ciSet-Cookie: __Host-SID=22347; Domain=example.com
2713498266Sopenharmony_ciSet-Cookie: __Host-SID=22348; Domain=example.com; Path=/
2813498266Sopenharmony_ciSet-Cookie: __Host-SID=22349; Secure; Domain=example.com; Path=/
2913498266Sopenharmony_ciSet-Cookie: __Host-SID=12346; Secure; Path=/
3013498266Sopenharmony_ciContent-Length: 7
3113498266Sopenharmony_ci
3213498266Sopenharmony_cinomnom
3313498266Sopenharmony_ci</data1>
3413498266Sopenharmony_ci<data2>
3513498266Sopenharmony_ciHTTP/1.1 200 OK
3613498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
3713498266Sopenharmony_ciServer: test-server/fake
3813498266Sopenharmony_ciSet-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER; httponly;
3913498266Sopenharmony_ciSet-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER/; httponly;
4013498266Sopenharmony_ciSet-Cookie: super=plain; domain=example.com; path=/15; httponly;
4113498266Sopenharmony_ciSet-Cookie: public=yes; domain=example.com; path=/foo;
4213498266Sopenharmony_ciSet-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login/en;
4313498266Sopenharmony_ciSet-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login;
4413498266Sopenharmony_ciSet-Cookie: secureoverhttp=yes; domain=example.com; path=/%TESTNUMBER; secure;
4513498266Sopenharmony_ciSet-Cookie: __Secure-SID=22345; Domain=example.com
4613498266Sopenharmony_ciSet-Cookie: __SecuRE-SID=22346; Secure; Domain=example.com
4713498266Sopenharmony_ciSet-Cookie: __Host-SID=32345
4813498266Sopenharmony_ciSet-Cookie: __Host-SID=32346; Secure
4913498266Sopenharmony_ciSet-Cookie: __Host-SID=32347; Domain=example.com
5013498266Sopenharmony_ciSet-Cookie: __Host-SID=32348; Domain=example.com; Path=/
5113498266Sopenharmony_ciSet-Cookie: __Host-SID=32349; Secure; Domain=example.com; Path=/
5213498266Sopenharmony_ciSet-Cookie: __Host-SID=32350; Secure; Path=/
5313498266Sopenharmony_ciContent-Length: 7
5413498266Sopenharmony_ci
5513498266Sopenharmony_cinomnom
5613498266Sopenharmony_ci</data2>
5713498266Sopenharmony_ci</reply>
5813498266Sopenharmony_ci
5913498266Sopenharmony_ci# Client-side
6013498266Sopenharmony_ci<client>
6113498266Sopenharmony_ci<features>
6213498266Sopenharmony_ciSSL
6313498266Sopenharmony_ci</features>
6413498266Sopenharmony_ci<server>
6513498266Sopenharmony_cihttp
6613498266Sopenharmony_cihttps
6713498266Sopenharmony_ci</server>
6813498266Sopenharmony_ci<killserver>
6913498266Sopenharmony_cihttps
7013498266Sopenharmony_ci</killserver>
7113498266Sopenharmony_ci<name>
7213498266Sopenharmony_ciCookies set over HTTP can't override secure ones
7313498266Sopenharmony_ci</name>
7413498266Sopenharmony_ci<command>
7513498266Sopenharmony_ci-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"
7613498266Sopenharmony_ci</command>
7713498266Sopenharmony_ci</client>
7813498266Sopenharmony_ci<verify>
7913498266Sopenharmony_ci<protocol>
8013498266Sopenharmony_ciGET /%TESTNUMBER0001 HTTP/1.1
8113498266Sopenharmony_ciHost: www.example.com
8213498266Sopenharmony_ciUser-Agent: curl/%VERSION
8313498266Sopenharmony_ciAccept: */*
8413498266Sopenharmony_ci
8513498266Sopenharmony_ciGET /%TESTNUMBER0002 HTTP/1.1
8613498266Sopenharmony_ciHost: www.example.com
8713498266Sopenharmony_ciUser-Agent: curl/%VERSION
8813498266Sopenharmony_ciAccept: */*
8913498266Sopenharmony_ci
9013498266Sopenharmony_ci</protocol>
9113498266Sopenharmony_ci<file name="%LOGDIR/jar%TESTNUMBER.txt" mode="text">
9213498266Sopenharmony_ci# Netscape HTTP Cookie File
9313498266Sopenharmony_ci# https://curl.se/docs/http-cookies.html
9413498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk.
9513498266Sopenharmony_ci
9613498266Sopenharmony_ci.example.com	TRUE	/foo	FALSE	0	public	yes
9713498266Sopenharmony_ci#HttpOnly_.example.com	TRUE	/15	FALSE	0	super	plain
9813498266Sopenharmony_ciwww.example.com	FALSE	/	TRUE	0	__Host-SID	12346
9913498266Sopenharmony_ci.example.com	TRUE	/	TRUE	0	supersupersuper	secret
10013498266Sopenharmony_ci.example.com	TRUE	/	TRUE	0	__SecURE-SID	12346
10113498266Sopenharmony_ci.example.com	TRUE	/%TESTNUMBER/login/	TRUE	0	supersuper	secret
10213498266Sopenharmony_ci.example.com	TRUE	/1561	TRUE	0	super	secret
10313498266Sopenharmony_ci</file>
10413498266Sopenharmony_ci
10513498266Sopenharmony_ci</verify>
10613498266Sopenharmony_ci
10713498266Sopenharmony_ci</testcase>
108