cURL / Mailing Lists / curl-library / Single Mail


Re: Get the directory of remote machine

From: Guenter <>
Date: Thu, 19 Sep 2013 23:18:47 +0200

On 19.09.2013 21:10, Igor Korot wrote:
> Is it possible to get the directory of the remote machine?
> What I'm looking for is the procedure to check for an updated file.
> I will connect to the remote server and get the directory sorted by date.
> If the last file's date and the file I have locally are from the same
> date - skip
> download. Otherwise get the newer file.
> Or maybe there is an easier process?
if you also design the server side then you can also use http and use
libcurl to get the headers only; usually the 'Last-modified' header
tells you the remote date. You can test this also with the curl
commandline with option -I.


List admin:
Received on 2013-09-19