This command line option is mutually exclusive with --range: you can only use
one of them for a single transfer.
-The --no-clobber option cannot be used together with --continue-at.
+The --no-clobber and --remove-on-error options cannot be used together with
+--continue-at.
the case of an error during transfer.
If the output is not a regular file, this option has no effect.
+
+The --continue-at option cannot be used together with --remove-on-error.
errorf(global, "--continue-at is mutually exclusive with --range");
return PARAM_BAD_USE;
}
+ if(config->rm_partial) {
+ errorf(config->global,
+ "--continue-at is mutually exclusive with --remove-on-error");
+ return PARAM_BAD_USE;
+ }
if(config->file_clobber_mode == CLOBBER_NEVER) {
errorf(config->global,
"--continue-at is mutually exclusive with --no-clobber");
}
break;
case C_REMOVE_ON_ERROR: /* --remove-on-error */
+ if(config->use_resume && toggle) {
+ errorf(config->global,
+ "--continue-at is mutually exclusive with --remove-on-error");
+ return PARAM_BAD_USE;
+ }
config->rm_partial = toggle;
break;
case C_FAIL: /* --fail */
test444 test445 test446 test447 test448 test449 test450 test451 test452 \
test453 test454 test455 test456 test457 test458 test459 test460 test461 \
test462 test463 test467 test468 test469 test470 test471 test472 test473 \
-test474 test475 test476 test477 test478 test479 test480 test481 \
+test474 test475 test476 test477 test478 test479 test480 test481 test482 \
\
test490 test491 test492 test493 test494 test495 test496 test497 test498 \
test499 test500 test501 test502 test503 test504 test505 test506 test507 \
--- /dev/null
+<testcase>
+<info>
+<keywords>
+HTTP
+--remove-on-error
+--continue-at
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+<name>
+--remove-on-error with --continue-at
+</name>
+<command option="no-output,no-include">
+http://non-existing-host.haxx.se. --remove-on-error -C 1 -o "%LOGDIR/%TESTNUMBER"
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<errorcode>
+2
+</errorcode>
+<stderr mode="text">
+curl: --continue-at is mutually exclusive with --remove-on-error
+curl: option -C: is badly used here
+curl: try 'curl --help' or 'curl --manual' for more information
+</stderr>
+</verify>
+</testcase>