curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Naming ETag files?

From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Sat, 14 Jan 2023 19:21:40 +0100 (CET)

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
Received on 2023-01-14