Forum topic with details: https://forums.whonix.org/t/scurl-wrapper-problem/7125
A few fixes are needed for scurl wrappers to use them in many regular cases.
Pull request: https://github.com/Whonix/scurl/pull/1
- Fix main scurl wrapper:
- Remove --remote-name to avoid forced saving to file and restore vanilla behavior of writing to stdout instead
- this flag breaks correct scurl usage in place of curl
- download wrappers were already added for saving to file
- Remove --remote-name to avoid forced saving to file and restore vanilla behavior of writing to stdout instead
- Improve download wrappers:
- Replace --remote-name with --remote-name-all
- allows to download multiple URLs at once and auto-save all of them to files with extracted names
- allows to explicitly specify filename (-o filename) for any URL, or prevent saving to file but write to stdout instead (-o - or --no-remote-name)
- Attention: the order of naming options and URLs doesn't matter, the first option is for the first URL and so on, so e.g. to override filename for 3rd URL only, user must specify auto-saving of first 2: -O -O -o -
- Add --remote-header-name
- curl will try to get server-specified filename from Content-Disposition response header, otherwise extract it from URL the usual way — allows to download and auto-save dynamically generated files, different files from the same common URL, etc.
- Replace --remote-name with --remote-name-all
Whonix developers decision is needed
- Consider renaming curl-download / scurl-download wrappers, or adding symlinks with short and simple names for convenience of regular users (to use as a replacement for wget):
- curld / scurld
- curlget / scurlget
- durl / sdurl
- etc.