1<testcase> 2<info> 3<keywords> 4HTTP 5HSTS 6url_effective 7</keywords> 8</info> 9 10<reply> 11 12# we use this as response to a CONNECT 13<connect nocheck="yes"> 14HTTP/1.1 403 not OK at all 15Date: Tue, 09 Nov 2010 14:49:00 GMT 16Server: test-server/fake 17Content-Length: 6 18Connection: close 19Funny-head: yesyes 20 21-foo- 22</connect> 23</reply> 24 25<client> 26<server> 27http 28</server> 29<features> 30HSTS 31proxy 32https 33</features> 34 35<file name="log/input%TESTNUMBER"> 36.hsts.example "20311001 04:47:41" 37</file> 38 39<name> 40HSTS and %{url_effective} after upgrade 41</name> 42<command> 43-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts log/input%TESTNUMBER -w '%{url_effective}\n' 44</command> 45</client> 46 47<verify> 48# we let it CONNECT to the server to confirm HSTS but deny from there 49<protocol> 50CONNECT this.hsts.example:443 HTTP/1.1 51Host: this.hsts.example:443 52User-Agent: curl/%VERSION 53Proxy-Connection: Keep-Alive 54 55</protocol> 56<stdout> 57HTTP/1.1 403 not OK at all 58Date: Tue, 09 Nov 2010 14:49:00 GMT 59Server: test-server/fake 60Content-Length: 6 61Connection: close 62Funny-head: yesyes 63 64https://this.hsts.example/%TESTNUMBER 65</stdout> 66# Proxy CONNECT aborted 67<errorcode> 6856 69</errorcode> 70</verify> 71</testcase> 72