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