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 no t-dot host name in URL but t-dot in 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<disable> 48test-duphandle 49</disable> 50</client> 51 52<verify> 53# we let it CONNECT to the server to confirm HSTS but deny from there 54<protocol> 55CONNECT this.hsts.example:443 HTTP/1.1 56Host: this.hsts.example:443 57User-Agent: curl/%VERSION 58Proxy-Connection: Keep-Alive 59 60</protocol> 61<stdout> 62HTTP/1.1 403 not OK at all 63Date: Tue, 09 Nov 2010 14:49:00 GMT 64Server: test-server/fake 65Content-Length: 6 66Connection: close 67Funny-head: yesyes 68 69https://this.hsts.example/%TESTNUMBER 70</stdout> 71# Proxy CONNECT aborted 72<errorcode> 7356 74</errorcode> 75</verify> 76</testcase> 77