summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/etag-save.d
diff options
context:
space:
mode:
authorMax Zettlmeißl <max@zettlmeissl.de>2021-07-18 10:42:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-18 18:24:05 +0200
commiteaab3f084af10b79d4ec1fc50db2f2dcffedc4ea (patch)
treea0f462846d72c35d8a49309d628c2e92ff823e97 /docs/cmdline-opts/etag-save.d
parent069dd3d2717071d2f6a1fa903204cbdeb89392fa (diff)
downloadcurl-eaab3f084af10b79d4ec1fc50db2f2dcffedc4ea.tar.gz
docs: make the documentation for --etag-save match the program behaviour
When using curl with the option `--etag-save` I expected it to save the ETag without its surrounding quotes, as stated by the documentation in the repository and by the generated man pages. My first endeavour was to fix the program, but while investigating the history of the relevant parts, I discovered that curl once saved the ETag without the quotes. This was undone by Daniel Stenberg in commit `98c94596f5928840177b6bd3c7b0f0dd03a431af`, therefore I decided that in this case the documentation should be adjusted to match the behaviour of curl. The changed save behaviour also made parts of the `--etag-compare` documentation wrong or superfluous, so I adjusted those accordingly. Closes #7429
Diffstat (limited to 'docs/cmdline-opts/etag-save.d')
-rw-r--r--docs/cmdline-opts/etag-save.d12
1 files changed, 3 insertions, 9 deletions
diff --git a/docs/cmdline-opts/etag-save.d b/docs/cmdline-opts/etag-save.d
index 95d1615ae..dc2484c32 100644
--- a/docs/cmdline-opts/etag-save.d
+++ b/docs/cmdline-opts/etag-save.d
@@ -5,13 +5,7 @@ Protocols: HTTP
Added: 7.68.0
Category: http
---
-This option saves an HTTP ETag to the specified file. Etag is
-usually part of headers returned by a request. When server sends an
-ETag, it must be enveloped by a double quote. This option extracts the
-ETag without the double quotes and saves it into the <file>.
+This option saves an HTTP ETag to the specified file. An ETag is a
+caching related header, usually returned in a response.
-A server can send a weak ETag which is prefixed by "W/". This identifier
-is not considered, and only relevant ETag between quotation marks is parsed.
-
-It an ETag wasn't sent by the server or it cannot be parsed, an empty
-file is created.
+If no ETag is sent by the server, an empty file is created.