diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2021-05-14 18:45:49 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-24 16:40:59 +0200 |
commit | a62e6435f4c110d14644bc8298d83c2e7b18dee5 (patch) | |
tree | dc8ba45c997b195d49ee57fd6d607da07ae6a6de /tests/data | |
parent | 98770344b2d6527c5b504fa740d7bbddbee1728e (diff) | |
download | curl-a62e6435f4c110d14644bc8298d83c2e7b18dee5.tar.gz |
rustls: switch read_tls and write_tls to callbacks
And update to 0.6.0, including a rename from session to connection for
many fields.
Closes #7071
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/Makefile.inc | 2 | ||||
-rw-r--r-- | tests/data/test364 | 51 |
2 files changed, 52 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index b0fef53c8..77feeccee 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -60,7 +60,7 @@ test325 test326 test327 test328 test329 test330 test331 test332 test333 \ test334 test335 test336 test337 test338 test339 test340 test341 test342 \ test343 test344 test345 test346 test347 test348 test349 test350 test351 \ test352 test353 test354 test355 test356 test357 test358 test359 test360 \ -test361 test362 test363 \ +test361 test362 test363 test364 \ \ test393 test394 test395 test396 test397 \ \ diff --git a/tests/data/test364 b/tests/data/test364 new file mode 100644 index 000000000..5afb8c96d --- /dev/null +++ b/tests/data/test364 @@ -0,0 +1,51 @@ +<testcase> +<info> +<keywords> +HTTPS +HTTPS PUT +</keywords> +</info> +# Server-side +<reply> +<data> +HTTP/1.0 200 OK swsclose +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake + +blablabla +</data> +</reply> + +# Client-side +<client> +<features> +SSL +</features> +<server> +https +</server> + <name> +HTTPS PUT of small file + </name> + <command> +-k https://%HOSTIP:%HTTPSPORT/we/want/%TESTNUMBER -T log/test%TESTNUMBER.txt +</command> +<file name="log/test%TESTNUMBER.txt"> +%repeat[200 x banana]% +</file> +</client> + +# Verify data after the test has been "shot" +<verify> +<protocol> +PUT /we/want/%TESTNUMBER HTTP/1.1
+Host: %HOSTIP:%HTTPSPORT
+User-Agent: curl/%VERSION
+Accept: */*
+Content-Length: 1201
+Expect: 100-continue
+
+%repeat[200 x banana]% +</protocol> +</verify> +</testcase> |