cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Accessing remote file timestamp

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 28 Apr 2009 11:04:34 +0200 (CEST)

On Sun, 26 Apr 2009, Legicrawler wrote:

> Is there a way to access the timestamp or date last modified of remote files
> and have that information sent to stdout?

Hm. No. curl can fetch the time (--remote-time) but it only uses that to set
the time of the downloaded file!

Adding a new variable field to the -w output when --remote-time is used could
be a useful addition that would enable what you ask for. The problem could
possibly be to decide what format to use for the output!

You up to writing a patch for this?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-28