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