我想知道CURL是否允许你像WGET-N那样执行相同的function – 如果客户端的现有文件比服务器上的文件早,它将只下载/覆盖文件。
cURL没有wget内置的相同类型的镜像支持。在cURL中有一个设置,它可以很容易地为你自己实现,尽管有一些包装逻辑。 这是 – --remote-time
选项:
-R/--remote-time When used, this will make libcurl attempt to figure out the timestamp of the remote file, and if that is available make the local file get that same timestamp.