cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Get the directory of remote machine

From: Igor Korot <ikorot01_at_gmail.com>
Date: Thu, 19 Sep 2013 14:36:45 -0700

Hi, Guenter,

On Thu, Sep 19, 2013 at 2:18 PM, Guenter <lists_at_gknw.net> wrote:

> Hi,
>
> 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.
>

No, I don't. I will probably connect to some publicly available server to
download the excel file.

Thank you.

> Gün.
>
>
>
>
>
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-library<http://cool.haxx.se/list/listinfo/curl-library>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-19