1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTP 5*6236dae4SAndroid Build Coastguard WorkerHTTP proxy 6*6236dae4SAndroid Build Coastguard WorkerHSTS 7*6236dae4SAndroid Build Coastguard Workertrailing-dot 8*6236dae4SAndroid Build Coastguard Worker</keywords> 9*6236dae4SAndroid Build Coastguard Worker</info> 10*6236dae4SAndroid Build Coastguard Worker 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker 13*6236dae4SAndroid Build Coastguard Worker# we use this as response to a CONNECT 14*6236dae4SAndroid Build Coastguard Worker<connect nocheck="yes"> 15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 403 not OK at all 16*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 17*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 18*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 19*6236dae4SAndroid Build Coastguard WorkerConnection: close 20*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 21*6236dae4SAndroid Build Coastguard Worker 22*6236dae4SAndroid Build Coastguard Worker-foo- 23*6236dae4SAndroid Build Coastguard Worker</connect> 24*6236dae4SAndroid Build Coastguard Worker</reply> 25*6236dae4SAndroid Build Coastguard Worker 26*6236dae4SAndroid Build Coastguard Worker<client> 27*6236dae4SAndroid Build Coastguard Worker<server> 28*6236dae4SAndroid Build Coastguard Workerhttp 29*6236dae4SAndroid Build Coastguard Worker</server> 30*6236dae4SAndroid Build Coastguard Worker<features> 31*6236dae4SAndroid Build Coastguard WorkerHSTS 32*6236dae4SAndroid Build Coastguard Workerproxy 33*6236dae4SAndroid Build Coastguard Workerhttps 34*6236dae4SAndroid Build Coastguard Worker</features> 35*6236dae4SAndroid Build Coastguard Worker 36*6236dae4SAndroid Build Coastguard Worker# no trailing dot in the file only in the URL 37*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/input%TESTNUMBER"> 38*6236dae4SAndroid Build Coastguard Workerthis.hsts.example. "99991001 04:47:41" 39*6236dae4SAndroid Build Coastguard Worker</file> 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Worker<name> 42*6236dae4SAndroid Build Coastguard WorkerHSTS with no t-dot host name in URL but t-dot in file 43*6236dae4SAndroid Build Coastguard Worker</name> 44*6236dae4SAndroid Build Coastguard Worker<command> 45*6236dae4SAndroid Build Coastguard Worker-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n' 46*6236dae4SAndroid Build Coastguard Worker</command> 47*6236dae4SAndroid Build Coastguard Worker</client> 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker<verify> 50*6236dae4SAndroid Build Coastguard Worker# we let it CONNECT to the server to confirm HSTS but deny from there 51*6236dae4SAndroid Build Coastguard Worker<protocol> 52*6236dae4SAndroid Build Coastguard WorkerCONNECT this.hsts.example:443 HTTP/1.1 53*6236dae4SAndroid Build Coastguard WorkerHost: this.hsts.example:443 54*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 55*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 56*6236dae4SAndroid Build Coastguard Worker 57*6236dae4SAndroid Build Coastguard Worker</protocol> 58*6236dae4SAndroid Build Coastguard Worker<stdout> 59*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 403 not OK at all 60*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 61*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 62*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 63*6236dae4SAndroid Build Coastguard WorkerConnection: close 64*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 65*6236dae4SAndroid Build Coastguard Worker 66*6236dae4SAndroid Build Coastguard Workerhttps://this.hsts.example/%TESTNUMBER 67*6236dae4SAndroid Build Coastguard Worker</stdout> 68*6236dae4SAndroid Build Coastguard Worker# Proxy CONNECT aborted 69*6236dae4SAndroid Build Coastguard Worker<errorcode> 70*6236dae4SAndroid Build Coastguard Worker56 71*6236dae4SAndroid Build Coastguard Worker</errorcode> 72*6236dae4SAndroid Build Coastguard Worker</verify> 73*6236dae4SAndroid Build Coastguard Worker</testcase> 74