curl/docs/cmdline-opts/etag-save.md
Daniel Stenberg a300879b63
curl: return error if etag options are used with multiple URLs
And document it.

Add tests 484 and 485

Fixes #15729
Reported-by: Tamir Duberstein
Closes #15731
2024-12-13 10:11:26 +01:00

528 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.