1<testcase> 2<info> 3<keywords> 4HTTPS 5HTTP 6HTTP GET 7cookies 8cookiejar 9HTTP replaced headers 10</keywords> 11</info> 12 13# Server-side 14<reply> 15<data1> 16HTTP/1.1 200 OK 17Date: Tue, 09 Nov 2010 14:49:00 GMT 18Server: test-server/fake 19Set-Cookie: super=secret; domain=example.com; path=/%TESTNUMBER; secure; 20Set-Cookie: supersuper=secret; domain=example.com; path=/%TESTNUMBER/login/; secure; 21Set-Cookie: __Secure-SID=12345; Domain=example.com 22Set-Cookie: __SecURE-SID=12346; Secure; Domain=example.com 23Set-Cookie: supersupersuper=secret; __Secure-SID=12346; Secure; Domain=example.com 24Set-Cookie: __Host-SID=22345 25Set-Cookie: __Host-SID=22346; Secure 26Set-Cookie: __Host-SID=22347; Domain=example.com 27Set-Cookie: __Host-SID=22348; Domain=example.com; Path=/ 28Set-Cookie: __Host-SID=22349; Secure; Domain=example.com; Path=/ 29Set-Cookie: __Host-SID=12346; Secure; Path=/ 30Content-Length: 7 31 32nomnom 33</data1> 34<data2> 35HTTP/1.1 200 OK 36Date: Tue, 09 Nov 2010 14:49:00 GMT 37Server: test-server/fake 38Set-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER; httponly; 39Set-Cookie: super=plain; domain=example.com; path=/%TESTNUMBER/; httponly; 40Set-Cookie: super=plain; domain=example.com; path=/15; httponly; 41Set-Cookie: public=yes; domain=example.com; path=/foo; 42Set-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login/en; 43Set-Cookie: supersuper=plain; domain=example.com; path=/%TESTNUMBER/login; 44Set-Cookie: secureoverhttp=yes; domain=example.com; path=/%TESTNUMBER; secure; 45Set-Cookie: __Secure-SID=22345; Domain=example.com 46Set-Cookie: __SecuRE-SID=22346; Secure; Domain=example.com 47Set-Cookie: __Host-SID=32345 48Set-Cookie: __Host-SID=32346; Secure 49Set-Cookie: __Host-SID=32347; Domain=example.com 50Set-Cookie: __Host-SID=32348; Domain=example.com; Path=/ 51Set-Cookie: __Host-SID=32349; Secure; Domain=example.com; Path=/ 52Set-Cookie: __Host-SID=32350; Secure; Path=/ 53Content-Length: 7 54 55nomnom 56</data2> 57</reply> 58 59# Client-side 60<client> 61<features> 62SSL 63</features> 64<server> 65http 66https 67</server> 68<killserver> 69https 70</killserver> 71<name> 72Cookies set over HTTP can't override secure ones 73</name> 74<command> 75-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</command> 77</client> 78<verify> 79<protocol> 80GET /%TESTNUMBER0001 HTTP/1.1 81Host: www.example.com 82User-Agent: curl/%VERSION 83Accept: */* 84 85GET /%TESTNUMBER0002 HTTP/1.1 86Host: www.example.com 87User-Agent: curl/%VERSION 88Accept: */* 89 90</protocol> 91<file name="%LOGDIR/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 98www.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> 108