test441 (1311B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP proxy 6 HSTS 7 trailing-dot 8 </keywords> 9 </info> 10 11 <reply> 12 13 # we use this as response to a CONNECT 14 <connect nocheck="yes"> 15 HTTP/1.1 403 not OK at all 16 Date: Tue, 09 Nov 2010 14:49:00 GMT 17 Server: test-server/fake 18 Content-Length: 6 19 Connection: close 20 Funny-head: yesyes 21 22 -foo- 23 </connect> 24 </reply> 25 26 <client> 27 <server> 28 http 29 </server> 30 <features> 31 HSTS 32 proxy 33 https 34 </features> 35 36 # no trailing dot in the file only in the URL 37 <file name="%LOGDIR/input%TESTNUMBER"> 38 this.hsts.example. "99991001 04:47:41" 39 </file> 40 41 <name> 42 HSTS 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> 48 test-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> 55 CONNECT this.hsts.example:443 HTTP/1.1 56 Host: this.hsts.example:443 57 User-Agent: curl/%VERSION 58 Proxy-Connection: Keep-Alive 59 60 </protocol> 61 <stdout> 62 HTTP/1.1 403 not OK at all 63 Date: Tue, 09 Nov 2010 14:49:00 GMT 64 Server: test-server/fake 65 Content-Length: 6 66 Connection: close 67 Funny-head: yesyes 68 69 https://this.hsts.example/%TESTNUMBER 70 </stdout> 71 # Proxy CONNECT aborted 72 <errorcode> 73 56 74 </errorcode> 75 </verify> 76 </testcase>