From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: make standard If-Modified-Since headers Date: Wed, 27 Feb 2008 09:08:43 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <867igqtp1g.fsf@lifelogs.com> References: <86pruy3q6p.fsf@lifelogs.com> <873arfl1ui.fsf_-_@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204124860 22506 80.91.229.12 (27 Feb 2008 15:07:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 15:07:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 16:08:06 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUNsY-0001mV-C3 for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 16:07:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUNs2-0007M8-7i for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 10:06:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUNry-0007LC-Cy for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:06:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUNrw-0007Jm-Hp for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:06:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUNrw-0007JV-C1 for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:06:52 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUNrv-0001O0-LT for emacs-devel@gnu.org; Wed, 27 Feb 2008 10:06:52 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JUNrt-0006Qq-9a for emacs-devel@gnu.org; Wed, 27 Feb 2008 15:06:49 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 15:06:49 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 15:06:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:16R5lwKa5tCMJw1l3x79UQXTMro= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90608 Archived-At: >>>>>> "TZ" == Ted Zlatanov writes: TZ> On Sat, 16 Feb 2008 04:15:36 +0800 jidanni@jidanni.org wrote: j> Well OK but I bet j> If-modified-since: Wednesday, 13-Feb-08 00:45:19 GMT j> means 1908. TZ> You may be right, RFC 850 doesn't specify the conversion. Sorry I TZ> didn't consider that in my original response (typical engineer response TZ> to man in balloon asking "where am I" -- "in the air" :) TZ> I don't know if the date should be 1900+x or (1900+x when x > 50, 2000+x TZ> otherwise). I'll bet that's one of the reasons RFC 850 is obsolete, so TZ> let's instead try to fix the root problem. TZ> So, what's sending that header? In Emacs 22, it seems to be TZ> lisp/url/url-util.el:url-get-normalized-date and it definitely has the TZ> behavior you noted. Since the bug may affect other things (there's a TZ> comment about Plexus servers in the code) I won't attempt to fix it TZ> myself, though it's not hard to do. Please, emacs-devel-opers, let me TZ> know if I should submit a fix. TZ> I think format-time-string is the right function to do this, but there's TZ> probably subtleties that I don't know. At least for time zones, TZ> format-time-string will handle them correctly. On Wed, 27 Feb 2008 07:44:37 +0800 jidanni@jidanni.org wrote: j> Can you people please make If-Modified-Since headers like say, j> firefox? Here is an If-Modified-Since header made by firefox: j> If-Modified-Since: Wed, 13 Feb 2008 00:45:19 GMT Please note that this is not Firefox-specific. The date format is a RFC specification, and currently url-get-normalized-date is returning the RFC 850 format which is obsoleted by the newer relevant RFC. As I said, I'll write a fix if necessary, but wanted to ask for opinions to make sure existing code (especially parsers that might depend on the old format) doesn't break. Ted