summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-09 11:34:37 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-09 11:34:37 +0100
commit206061697b3c2d92c4c5122c59ab05001d30239d (patch)
tree05f3eea88a8ba068d164a49280c44c209179ba4a
parentd14831233df3a15b14db563156614c9ea60fcf06 (diff)
downloadcurl-bagder/remote-header-namee.tar.gz
remote-header-name.d: clarifybagder/remote-header-namee
- it strips off the path from the server provided name - it saves in current directory or --output-dir Ref: https://curl.se/mail/archive-2022-01/0032.html
-rw-r--r--docs/cmdline-opts/remote-header-name.d9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/cmdline-opts/remote-header-name.d b/docs/cmdline-opts/remote-header-name.d
index 00db0b455..b9550deed 100644
--- a/docs/cmdline-opts/remote-header-name.d
+++ b/docs/cmdline-opts/remote-header-name.d
@@ -8,10 +8,15 @@ Added: 7.20.0
See-also: remote-name
---
This option tells the --remote-name option to use the server-specified
-Content-Disposition filename instead of extracting a filename from the URL.
+Content-Disposition filename instead of extracting a filename from the URL. If
+the server-provided file name contains a path, that will be stripped off
+before the file name is used.
+
+The file is saved in the current directory, or in the directory specified with
+--output-dir.
If the server specifies a file name and a file with that name already exists
-in the current working directory it will not be overwritten and an error will
+in the destination directory, it will not be overwritten and an error will
occur. If the server does not specify a file name then this option has no
effect.