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: Thu, 09 Nov 2010 14:49:00 GMT 18Server: test-server/fake 19Set-Cookie: super=secret; domain=example.com; path=/1561; secure; 20Set-Cookie: supersuper=secret; domain=example.com; path=/1561/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: Thu, 09 Nov 2010 14:49:00 GMT 37Server: test-server/fake 38Set-Cookie: super=secret; domain=example.com; path=/1561; httponly; 39Set-Cookie: super=secret; domain=example.com; path=/1561/; httponly; 40Set-Cookie: super=secret; domain=example.com; path=/15; httponly; 41Set-Cookie: public=yes; domain=example.com; path=/foo; 42Set-Cookie: supersuper=secret; domain=example.com; path=/1561/login/en; 43Set-Cookie: supersuper=secret; domain=example.com; path=/1561/login; 44Set-Cookie: secureoverhttp=yes; domain=example.com; path=/1561; 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<name> 69Cookies set over HTTP can't override secure ones 70</name> 71<command> 72-k https://%HOSTIP:%HTTPSPORT/15610001 -L -c log/jar1561.txt -H "Host: www.example.com" http://%HOSTIP:%HTTPPORT/15610002 -L -c log/jar1561.txt -H "Host: www.example.com" 73</command> 74</client> 75<verify> 76<protocol> 77GET /15610001 HTTP/1.1 78Host: www.example.com 79User-Agent: curl/%VERSION 80Accept: */* 81 82GET /15610002 HTTP/1.1 83Host: www.example.com 84User-Agent: curl/%VERSION 85Accept: */* 86 87</protocol> 88<file name="log/jar1561.txt" mode="text"> 89# Netscape HTTP Cookie File 90# https://curl.haxx.se/docs/http-cookies.html 91# This file was generated by libcurl! Edit at your own risk. 92 93.example.com TRUE /foo FALSE 0 public yes 94www.example.com FALSE / TRUE 0 __Host-SID 12346 95.example.com TRUE / TRUE 0 supersupersuper secret 96.example.com TRUE / TRUE 0 __Secure-SID 12346 97.example.com TRUE /1561/login/ TRUE 0 supersuper secret 98#HttpOnly_.example.com TRUE /15 FALSE 0 super secret 99</file> 100 101</verify> 102 103</testcase> 104