diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-05-08 00:14:33 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-05-08 14:10:44 +0200 |
commit | 39a33fcac0e4530ef0c60d3319504e078ea2f137 (patch) | |
tree | c517936e7c16271498e8fafc8de2c74202ad73b9 /tests | |
parent | fb7886b9c95009a837f584caf4943a455f3daa60 (diff) | |
download | curl-39a33fcac0e4530ef0c60d3319504e078ea2f137.tar.gz |
tool_operate: refuse (--data or --form) and --continue-at combo
libcurl assumes that a --continue-at resumption is done to continue an
upload using the read callback and neither --data nor --form use
that and thus won't do what the user wants. Whatever the user wants
with this strange combination.
Add test 426 to verify.
Reported-by: Smackd0wn on github
Fixes #11081
Closes #11083
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.inc | 2 | ||||
-rw-r--r-- | tests/data/test426 | 34 |
2 files changed, 35 insertions, 1 deletions
diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index 8baf721b7..c2d9cb2a2 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -69,7 +69,7 @@ test390 test391 test392 test393 test394 test395 test396 test397 test398 \ test399 test400 test401 test402 test403 test404 test405 test406 test407 \ test408 test409 test410 test411 test412 test413 test414 test415 test416 \ test417 test418 test419 test420 test421 test422 test423 test424 test425 \ -\ +test426 \ test430 test431 test432 test433 test434 test435 test436 \ \ test440 test441 test442 test443 test444 test445 test446 \ diff --git a/tests/data/test426 b/tests/data/test426 new file mode 100644 index 000000000..34c80c6aa --- /dev/null +++ b/tests/data/test426 @@ -0,0 +1,34 @@ +<testcase> +<info> +<keywords> +error detection +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<name> +try --data with --continue-at +</name> +<command> +http://%HOSTIP:%HTTPPORT/%TESTNUMBER -d foobar -C 3 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +2 +</errorcode> +</verify> +</testcase> |