Re: Naming ETag files?
Daniel Stenberg via curl-users <[email protected]>
| Newsgroups | gmane.comp.web.curl.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 12 Jan 2023, Paul Gilmartin via curl-users wrote:
> I would like to save my --etag-compare and --etag-save (probably the same
> name) files with names generated from the --remote-header-name; perhaps as
> simple as "$remote-header-name.ETag". Is there an orderly and reliable way
> to do this?
No there isn't. With some clever thinking maybe we can offer this in the
future!
> As an alternative, is it possible to use "--write-out %{filename_effective}"
> without actually downloading the resource? I could then use
> "$filename_effective.ETag" to name my ETags.
Having "${variables}" work more broadly would be cool but tricky since they
are all available/done at different point in times, and generally safe to get
*after* the transfer is complete...
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html