}
break;
case 'i':
- if(config->content_disposition) {
- warnf(global,
- "--include and --remote-header-name cannot be combined.\n");
- return PARAM_BAD_USE;
- }
config->show_headers = toggle; /* show the headers as well in the
general output stream */
break;
return PARAM_BAD_USE;
break;
case 'J': /* --remote-header-name */
- if(config->show_headers) {
- warnf(global,
- "--include and --remote-header-name cannot be combined.\n");
- return PARAM_BAD_USE;
- }
config->content_disposition = toggle;
break;
case 'k': /* allow insecure SSL connects */
curlx_unicodefree(orig_opt);
}
+ if(config->content_disposition) {
+ if(config->show_headers) {
+ helpf(global->errors, "--include and --remote-header-name "
+ "cannot be combined.\n");
+ return PARAM_BAD_USE;
+ }
+ if(config->resume_from_current) {
+ helpf(global->errors, "--continue-at - and --remote-header-name "
+ "cannot be combined.\n");
+ return PARAM_BAD_USE;
+ }
+ }
+
if(result && result != PARAM_HELP_REQUESTED &&
result != PARAM_MANUAL_REQUESTED &&
result != PARAM_VERSION_INFO_REQUESTED &&