| 1 |
Long: etag-save |
| 2 |
Arg: <file> |
| 3 |
Help: Parse ETag from a request and save it to a file |
| 4 |
Protocols: HTTP |
| 5 |
Added: 7.68.0 |
| 6 |
--- |
| 7 |
This option saves an HTTP ETag to the specified file. Etag is |
| 8 |
usually part of headers returned by a request. When server sends an |
| 9 |
ETag, it must be enveloped by a double quote. This option extracts the |
| 10 |
ETag without the double quotes and saves it into the <file>. |
| 11 |
|
| 12 |
A server can send a week ETag which is prefixed by "W/". This identifier |
| 13 |
is not considered, and only relevant ETag between quotation marks is parsed. |
| 14 |
|
| 15 |
It an ETag wasn't send by the server or it cannot be parsed, and empty |
| 16 |
file is created. |