113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP proxy
613498266Sopenharmony_ciHSTS
713498266Sopenharmony_ciurl_effective
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci
1313498266Sopenharmony_ci# we use this as response to a CONNECT
1413498266Sopenharmony_ci<connect nocheck="yes">
1513498266Sopenharmony_ciHTTP/1.1 403 not OK at all
1613498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1713498266Sopenharmony_ciServer: test-server/fake
1813498266Sopenharmony_ciContent-Length: 6
1913498266Sopenharmony_ciConnection: close
2013498266Sopenharmony_ciFunny-head: yesyes
2113498266Sopenharmony_ci
2213498266Sopenharmony_ci-foo-
2313498266Sopenharmony_ci</connect>
2413498266Sopenharmony_ci</reply>
2513498266Sopenharmony_ci
2613498266Sopenharmony_ci<client>
2713498266Sopenharmony_ci<server>
2813498266Sopenharmony_cihttp
2913498266Sopenharmony_ci</server>
3013498266Sopenharmony_ci<features>
3113498266Sopenharmony_ciHSTS
3213498266Sopenharmony_ciproxy
3313498266Sopenharmony_cihttps
3413498266Sopenharmony_ci</features>
3513498266Sopenharmony_ci
3613498266Sopenharmony_ci<file name="%LOGDIR/input%TESTNUMBER">
3713498266Sopenharmony_ci.hsts.example "99991001 04:47:41"
3813498266Sopenharmony_ci</file>
3913498266Sopenharmony_ci
4013498266Sopenharmony_ci<name>
4113498266Sopenharmony_ciHSTS and %{url_effective} after upgrade
4213498266Sopenharmony_ci</name>
4313498266Sopenharmony_ci<command>
4413498266Sopenharmony_ci-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n'
4513498266Sopenharmony_ci</command>
4613498266Sopenharmony_ci</client>
4713498266Sopenharmony_ci
4813498266Sopenharmony_ci<verify>
4913498266Sopenharmony_ci# we let it CONNECT to the server to confirm HSTS but deny from there
5013498266Sopenharmony_ci<protocol>
5113498266Sopenharmony_ciCONNECT this.hsts.example:443 HTTP/1.1
5213498266Sopenharmony_ciHost: this.hsts.example:443
5313498266Sopenharmony_ciUser-Agent: curl/%VERSION
5413498266Sopenharmony_ciProxy-Connection: Keep-Alive
5513498266Sopenharmony_ci
5613498266Sopenharmony_ci</protocol>
5713498266Sopenharmony_ci<stdout>
5813498266Sopenharmony_ciHTTP/1.1 403 not OK at all
5913498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
6013498266Sopenharmony_ciServer: test-server/fake
6113498266Sopenharmony_ciContent-Length: 6
6213498266Sopenharmony_ciConnection: close
6313498266Sopenharmony_ciFunny-head: yesyes
6413498266Sopenharmony_ci
6513498266Sopenharmony_cihttps://this.hsts.example/%TESTNUMBER
6613498266Sopenharmony_ci</stdout>
6713498266Sopenharmony_ci# Proxy CONNECT aborted
6813498266Sopenharmony_ci<errorcode>
6913498266Sopenharmony_ci56
7013498266Sopenharmony_ci</errorcode>
7113498266Sopenharmony_ci</verify>
7213498266Sopenharmony_ci</testcase>
73