all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Downloadiong and file dates
Date: Mon, 4 Jan 2010 03:07:19 +0100	[thread overview]
Message-ID: <e01d8a51001031807t75072e0ao947d12c042758d47@mail.gmail.com> (raw)

When downloading a file from Launchpad's repository's web interface
the downloaded file does not get the right modified/creation time.

The headers in a buffer downloaded with url-retrieve-synchronously says

HTTP/1.1 200 OK
Date: Mon, 04 Jan 2010 01:50:08 GMT
Server: PasteWSGIServer/0.5 Python/2.5.2
Content-Type: application/octet-stream
Content-Length: 13071
Content-Disposition: attachment; filename*=utf-8''foldit.el
Via: 1.1 bazaar.launchpad.net
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Language: el


The "Date" is obviously now when I tested. That seems correct. However
it would be good to have the modification time for the file too. There
is a "Last-Modified" header that perhaps could be used for this. Would
that be correct use for that header?

And how does url-copy-file handle this? This function has an argument
named `keep-time' but it is not easy to see where and how it is used.
From the doc string it looks liike it preserves the date of an old
local file.

Does url-copy-file take care of "Last-Modified" if present? Should it?




             reply	other threads:[~2010-01-04  2:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-04  2:07 Lennart Borgman [this message]
2010-01-04 22:20 ` Downloadiong and file dates James Cloos
2010-01-04 22:38   ` Lennart Borgman
2010-01-04 22:56     ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a51001031807t75072e0ao947d12c042758d47@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.