[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 321/411: test493: verify --hsts upgrade and that %{url_effective
From: |
gnunet |
Subject: |
[gnurl] 321/411: test493: verify --hsts upgrade and that %{url_effective} reflects that |
Date: |
Wed, 13 Jan 2021 01:22:16 +0100 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit ee644bc8b3325074da62dc6c2e4eaf1499269896
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Nov 5 09:19:23 2020 +0100
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(-)
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 @@
+<testcase>
+<info>
+<keywords>
+HSTS
+url_effective
+</keywords>
+</info>
+
+<reply>
+
+# we use this as response to a CONNECT
+<data nocheck="yes">
+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-
+</data>
+</reply>
+
+<client>
+<server>
+http
+</server>
+<features>
+HSTS
+</features>
+
+<file name="log/input493">
+.hsts.example "20311001 04:47:41"
+</file>
+
+<name>
+HSTS and %{url_effective} after upgrade
+</name>
+<command>
+-x http://%HOSTIP:%HTTPPORT http://this.hsts.example/493 --hsts log/input493
-w '%{url_effective}\n'
+</command>
+</client>
+
+<verify>
+# we let it CONNECT to the server to confirm HSTS but deny from there
+<protocol>
+CONNECT this.hsts.example:443 HTTP/1.1
+Host: this.hsts.example:443
+User-Agent: curl/%VERSION
+Proxy-Connection: Keep-Alive
+
+</protocol>
+<stdout>
+https://this.hsts.example/493
+</stdout>
+# Proxy CONNECT aborted
+<errorcode>
+56
+</errorcode>
+</verify>
+</testcase>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnurl] 354/411: cmake: make CURL_ZLIB a tri-state variable, (continued)
- [gnurl] 354/411: cmake: make CURL_ZLIB a tri-state variable, gnunet, 2021/01/12
- [gnurl] 357/411: mailmap: Daniel Hwang, gnunet, 2021/01/12
- [gnurl] 265/411: CMake: store IDN2 information in curl_config.h, gnunet, 2021/01/12
- [gnurl] 351/411: KNOWN_BUGS: cmake autodetects cert paths when cross-compiling, gnunet, 2021/01/12
- [gnurl] 222/411: build-wolfssl: fix build with Visual Studio 2019, gnunet, 2021/01/12
- [gnurl] 202/411: src: Consistently spell whitespace without whitespace, gnunet, 2021/01/12
- [gnurl] 224/411: RELEASE-NOTES: synced, gnunet, 2021/01/12
- [gnurl] 277/411: range.d: fix typo, gnunet, 2021/01/12
- [gnurl] 296/411: sendf: move the verbose-check into Curl_debug, gnunet, 2021/01/12
- [gnurl] 359/411: tests/server/tftpd.c: close upload file right after transfer, gnunet, 2021/01/12
- [gnurl] 321/411: test493: verify --hsts upgrade and that %{url_effective} reflects that,
gnunet <=
- [gnurl] 314/411: docs: Fix various typos in documentation, gnunet, 2021/01/12
- [gnurl] 364/411: http3: use the master branch of GnuTLS for testing, gnunet, 2021/01/12
- [gnurl] 349/411: KNOWN_BUGS: cmake libcurl.pc uses absolute library paths, gnunet, 2021/01/12
- [gnurl] 278/411: CURLOPT_DNS_USE_GLOBAL_CACHE.3: fix typo, gnunet, 2021/01/12
- [gnurl] 329/411: Revert "libcurl.pc: make it relocatable", gnunet, 2021/01/12
- [gnurl] 327/411: Curl_pgrsStartNow: init speed limit time stamps at start, gnunet, 2021/01/12
- [gnurl] 310/411: KNOWN_BUGS: FTPS with Schannel times out file list operation, gnunet, 2021/01/12
- [gnurl] 295/411: travis: use valgrind when running tests for debug builds, gnunet, 2021/01/12
- [gnurl] 342/411: CURLOPT_HSTS.3: document the file format, gnunet, 2021/01/12
- [gnurl] 290/411: http: pass correct header size to debug callback for chunked post, gnunet, 2021/01/12