113498266Sopenharmony_ci<?xml version="1.0" encoding="ISO-8859-1"?> 213498266Sopenharmony_ci<testcase> 313498266Sopenharmony_ci<info> 413498266Sopenharmony_ci<keywords> 513498266Sopenharmony_ciHTTP 613498266Sopenharmony_ciHTTP proxy 713498266Sopenharmony_ciHSTS 813498266Sopenharmony_citrailing-dot 913498266Sopenharmony_ci</keywords> 1013498266Sopenharmony_ci</info> 1113498266Sopenharmony_ci 1213498266Sopenharmony_ci<reply> 1313498266Sopenharmony_ci 1413498266Sopenharmony_ci# we use this as response to a CONNECT 1513498266Sopenharmony_ci<connect nocheck="yes"> 1613498266Sopenharmony_ciHTTP/1.1 200 OK 1713498266Sopenharmony_ci 1813498266Sopenharmony_ci</connect> 1913498266Sopenharmony_ci<data crlf="yes"> 2013498266Sopenharmony_ciHTTP/1.1 200 OK 2113498266Sopenharmony_ciContent-Length: 6 2213498266Sopenharmony_ciStrict-Transport-Security: max-age=604800 2313498266Sopenharmony_ci 2413498266Sopenharmony_ci-foo- 2513498266Sopenharmony_ci</data> 2613498266Sopenharmony_ci<data2 crlf="yes"> 2713498266Sopenharmony_ciHTTP/1.1 200 OK 2813498266Sopenharmony_ciContent-Length: 6 2913498266Sopenharmony_ciStrict-Transport-Security: max-age=6048000 3013498266Sopenharmony_ci 3113498266Sopenharmony_ci-baa- 3213498266Sopenharmony_ci</data2> 3313498266Sopenharmony_ci</reply> 3413498266Sopenharmony_ci 3513498266Sopenharmony_ci<client> 3613498266Sopenharmony_ci<server> 3713498266Sopenharmony_cihttps 3813498266Sopenharmony_cihttp-proxy 3913498266Sopenharmony_ci</server> 4013498266Sopenharmony_ci<features> 4113498266Sopenharmony_ciHSTS 4213498266Sopenharmony_ciproxy 4313498266Sopenharmony_cihttps 4413498266Sopenharmony_cidebug 4513498266Sopenharmony_ci</features> 4613498266Sopenharmony_ci<setenv> 4713498266Sopenharmony_ciCURL_HSTS_HTTP=yes 4813498266Sopenharmony_ciCURL_TIME=2000000000 4913498266Sopenharmony_ci</setenv> 5013498266Sopenharmony_ci 5113498266Sopenharmony_ci<name> 5213498266Sopenharmony_ciHSTS with two URLs 5313498266Sopenharmony_ci</name> 5413498266Sopenharmony_ci<command> 5513498266Sopenharmony_ci-x http://%HOSTIP:%PROXYPORT --hsts %LOGDIR/hsts%TESTNUMBER http://this.hsts.example./%TESTNUMBER http://another.example.com/%TESTNUMBER0002 5613498266Sopenharmony_ci</command> 5713498266Sopenharmony_ci</client> 5813498266Sopenharmony_ci 5913498266Sopenharmony_ci<verify> 6013498266Sopenharmony_ci# we let it CONNECT to the server to confirm HSTS but deny from there 6113498266Sopenharmony_ci<proxy crlf="yes"> 6213498266Sopenharmony_ciGET http://this.hsts.example./%TESTNUMBER HTTP/1.1 6313498266Sopenharmony_ciHost: this.hsts.example. 6413498266Sopenharmony_ciUser-Agent: curl/%VERSION 6513498266Sopenharmony_ciAccept: */* 6613498266Sopenharmony_ciProxy-Connection: Keep-Alive 6713498266Sopenharmony_ci 6813498266Sopenharmony_ciGET http://another.example.com/%TESTNUMBER0002 HTTP/1.1 6913498266Sopenharmony_ciHost: another.example.com 7013498266Sopenharmony_ciUser-Agent: curl/%VERSION 7113498266Sopenharmony_ciAccept: */* 7213498266Sopenharmony_ciProxy-Connection: Keep-Alive 7313498266Sopenharmony_ci 7413498266Sopenharmony_ci</proxy> 7513498266Sopenharmony_ci 7613498266Sopenharmony_ci<file name="%LOGDIR/hsts%TESTNUMBER" mode="text"> 7713498266Sopenharmony_ci# Your HSTS cache. https://curl.se/docs/hsts.html 7813498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk. 7913498266Sopenharmony_cithis.hsts.example "20330525 03:33:20" 8013498266Sopenharmony_cianother.example.com "20330727 03:33:20" 8113498266Sopenharmony_ci</file> 8213498266Sopenharmony_ci 8313498266Sopenharmony_ci</verify> 8413498266Sopenharmony_ci</testcase> 85