From ee644bc8b3325074da62dc6c2e4eaf1499269896 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Nov 2020 09:19:23 +0100 Subject: test493: verify --hsts upgrade and that %{url_effective} reflects that Closes #6175 --- tests/data/Makefile.inc | 2 +- tests/data/test493 | 61 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 tests/data/test493 diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 8b7847e96..b9d03bce2 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -68,7 +68,7 @@ test409 \ \ test430 test431 test432 test433 test434 \ \ -test490 test491 test492 \ +test490 test491 test492 test493 \ \ test500 test501 test502 test503 test504 test505 test506 test507 test508 \ test509 test510 test511 test512 test513 test514 test515 test516 test517 \ diff --git a/tests/data/test493 b/tests/data/test493 new file mode 100644 index 000000000..f7758da34 --- /dev/null +++ b/tests/data/test493 @@ -0,0 +1,61 @@ + + + +HSTS +url_effective + + + + + +# we use this as response to a CONNECT + +HTTP/1.1 403 not OK at all +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 6 +Connection: close +Funny-head: yesyes + +-foo- + + + + + +http + + +HSTS + + + +.hsts.example "20311001 04:47:41" + + + +HSTS and %{url_effective} after upgrade + + +-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/493 --hsts log/input493 -w '%{url_effective}\n' + + + + +# we let it CONNECT to the server to confirm HSTS but deny from there + +CONNECT this.hsts.example:443 HTTP/1.1 +Host: this.hsts.example:443 +User-Agent: curl/%VERSION +Proxy-Connection: Keep-Alive + + + +https://this.hsts.example/493 + +# Proxy CONNECT aborted + +56 + + + -- cgit v1.2.1