curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

--etag-compare vs. --time-cond

From: Paul Gilmartin via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 7 Mar 2022 06:11:03 -0700

What happens if -etag-compare and --time-cond disagree about whether
to fetch the target resource? Does Curl simply send a Conditional
Request, as in <https://datatracker.ietf.org/doc/html/rfc7232>
and let the server decide? (But if it's not HTTP?)

Linux keeps file tiimestamps to fractions of a second. Does Curl
ignore fractions? This could affect "If-Modified-Since".

May I assume that the --etag-compare <file> may contain multiple
tags, comma-separated, on a single line?

May I assume that --etag-compare <file> and --etag-save <file> may
safely refer to the same file?

-- 
Thanks,
gil
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2022-03-07