1 Long: remote-header-name 2 Short: J 3 Protocols: HTTP 4 Help: Use the header-provided filename 5 Category: output 6 Example: -OJ https://example.com/file 7 Added: 7.20.0 8 --- 9 This option tells the --remote-name option to use the server-specified 10 Content-Disposition filename instead of extracting a filename from the URL. 11 12 If the server specifies a file name and a file with that name already exists 13 in the current working directory it will not be overwritten and an error will 14 occur. If the server does not specify a file name then this option has no 15 effect. 16 17 There's no attempt to decode %-sequences (yet) in the provided file name, so 18 this option may provide you with rather unexpected file names. 19 20 **WARNING**: Exercise judicious use of this option, especially on Windows. A 21 rogue server could send you the name of a DLL or other file that could possibly 22 be loaded automatically by Windows or some third party software. 23