etag-compare.d 757 B

12345678910111213141516171819202122
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: etag-compare
  4. Arg: <file>
  5. Help: Pass an ETag from a file as a custom header
  6. Protocols: HTTP
  7. Added: 7.68.0
  8. Category: http
  9. Example: --etag-compare etag.txt $URL
  10. See-also: etag-save time-cond
  11. ---
  12. This option makes a conditional HTTP request for the specific ETag read
  13. from the given file by sending a custom If-None-Match header using the
  14. stored ETag.
  15. For correct results, make sure that the specified file contains only a
  16. single line with the desired ETag. An empty file is parsed as an empty
  17. ETag.
  18. Use the option --etag-save to first save the ETag from a response, and
  19. then use this option to compare against the saved ETag in a subsequent
  20. request.