1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP proxy 6HSTS 7trailing-dot 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# no trailing dot in the file only in the URL 37<file name="%LOGDIR/input%TESTNUMBER"> 38this.hsts.example "99991001 04:47:41" 39</file> 40 41<name> 42HSTS with trailing-dot host name in URL but none in hsts file 43</name> 44<command> 45-x http://%HOSTIP:%HTTPPORT http://this.hsts.example./%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n' 46</command> 47 48<disable> 49test-duphandle 50</disable> 51</client> 52 53<verify> 54# we let it CONNECT to the server to confirm HSTS but deny from there 55<protocol> 56CONNECT this.hsts.example.:443 HTTP/1.1 57Host: this.hsts.example.:443 58User-Agent: curl/%VERSION 59Proxy-Connection: Keep-Alive 60 61</protocol> 62<stdout> 63HTTP/1.1 403 not OK at all 64Date: Tue, 09 Nov 2010 14:49:00 GMT 65Server: test-server/fake 66Content-Length: 6 67Connection: close 68Funny-head: yesyes 69 70https://this.hsts.example./%TESTNUMBER 71</stdout> 72# Proxy CONNECT aborted 73<errorcode> 7456 75</errorcode> 76</verify> 77</testcase> 78