curl/docs/cmdline-opts/etag-save.md
Daniel Stenberg 31c6b50cb2
curl: make --etag-save acknowledge --create-dirs
Add test 693 to verify

Fixes #15730
Suggested-by: Tamir Duberstein
Closes #15732
2024-12-21 14:12:16 +01:00

668 B

c SPDX-License-Identifier Long Arg Help Protocols Added Category Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl etag-save <file> Parse incoming ETag and save to a file HTTP 7.68.0 http single
etag-compare
--etag-save storetag.txt $URL

--etag-save

Save an HTTP ETag to the specified file. An ETag is a caching related header, usually returned in a response. Use this option with a single URL only.

If no ETag is sent by the server, an empty file is created.

Starting in curl 8.12.0, using the --create-dirs option can also create missing directory components for the path provided in --etag-save.