blob: 771b6d46996ddb0b830cc31c7e8678b9be247057 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Long: remote-header-name
2Short: J
3Protocols: HTTP
4Help: Use the header-provided filename
5---
6This option tells the --remote-name option to use the server-specified
7Content-Disposition filename instead of extracting a filename from the URL.
8
9If the server specifies a file name and a file with that name already exists
10in the current working directory it will not be overwritten and an error will
11occur. If the server doesn't specify a file name then this option has no
12effect.
13
14There's no attempt to decode %-sequences (yet) in the provided file name, so
15this option may provide you with rather unexpected file names.
16
17\fBWARNING\fP: Exercise judicious use of this option, especially on Windows. A
18rogue server could send you the name of a DLL or other file that could possibly
19be loaded automatically by Windows or some third party software.