With aria2c, how do I save a file under the original name, not the one following a…
- User
With
aria2c, how do I save a file under the original name, not the one following a redirect? Assistant
When using
aria2cto download a file that redirects, the default behavior is to save the file using the name from the final URL after the redirect. If you want to preserve the original filename (from the initial URL before the redirect), you can use the--remote-name(-O) option.Solution:
Use the
--remote-name(-O) flag to forcearia2cto use the filename from the original URL:aria2c --remote-name "http://example.com/original-file"
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.