| 1 |
Long: etag-compare |
| 2 |
Arg: <file> |
| 3 |
Help: Pass an ETag from a file as a custom header |
| 4 |
Protocols: HTTP |
| 5 |
Added: 7.68.0 |
| 6 |
--- |
| 7 |
This option makes a conditional HTTP request for the specific |
| 8 |
ETag read from the given file by sending a custom If-None-Match |
| 9 |
header using the extracted ETag. |
| 10 |
|
| 11 |
For correct results, make sure that specified file contains only a single |
| 12 |
line with a desired ETag. An empty file is parsed as an empty ETag. |
| 13 |
|
| 14 |
Use the option --etag-save to first save the ETag from a response, and |
| 15 |
then use this option to compare using the saved ETag in a subsequent request. |
| 16 |
|
| 17 |
\fCOMPARISON\fP: There are 2 types of comparison or ETags, Weak and Strong. |
| 18 |
This option expects, and uses a strong comparison. |