From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: Do you understand this? Date: Sun, 06 Mar 2005 23:12:52 +0000 Message-ID: <87psycjrm3.fsf@tapsellferrier.co.uk> References: <87sm38jyhm.fsf@tapsellferrier.co.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110151971 25532 80.91.229.2 (6 Mar 2005 23:32:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2005 23:32:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 07 00:32:50 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D85Eo-00082h-Si for ged-emacs-devel@m.gmane.org; Mon, 07 Mar 2005 00:32:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D85YT-0005OX-Ez for ged-emacs-devel@m.gmane.org; Sun, 06 Mar 2005 18:53:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D85Xx-0005Id-1o for emacs-devel@gnu.org; Sun, 06 Mar 2005 18:52:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D85Xr-0005I3-Q5 for emacs-devel@gnu.org; Sun, 06 Mar 2005 18:52:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D85Vz-0004VY-D0 for emacs-devel@gnu.org; Sun, 06 Mar 2005 18:50:27 -0500 Original-Received: from [80.168.156.78] (helo=owls-tree.tapsellferrier.co.uk) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1D84zu-0006Mv-5S for emacs-devel@gnu.org; Sun, 06 Mar 2005 18:17:18 -0500 Original-Received: from [80.168.156.68] (helo=kanga) by owls-tree.tapsellferrier.co.uk with esmtp (Exim 4.30 #1 (Debian)) id 1D84w0-00034V-Gr; Sun, 06 Mar 2005 23:13:16 +0000 Original-Received: from nferrier by kanga with local (Exim 4.44) id 1D84vc-0002kz-PR; Sun, 06 Mar 2005 23:12:52 +0000 Original-To: bob@rattlesnake.com In-Reply-To: (Robert J. Chassell's message of "Sun, 6 Mar 2005 22:32:56 +0000 (UTC)") 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34258 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34258 "Robert J. Chassell" writes: > Accept: text/plain; > q=0.5, text/html, text/x-dvi; > q=0.8, text/x-c > > If sent in an HTTP request for a resource /fred the above Accept > headers tells the server that the user will ideally accept /fred as an > HTML document or a text/x-c document. > > I do not understand. > > Am I right in formatting the statement such that semi-colons have a > higher precedence than commas? Yes. A media-type is a major-type / minor-type plus an optional list of parameters which are separated from themselves and the major/minor type info by semi-colons, eg: text/plain; charset=utf-8; otherparam=xxx; q=0.5 > If that is the case, then the above sequency looks to me to favor > > * text/x-c as the highest priority; > > * text/html, text/x-dvi both equally as the second priorty; and, > > * text/plain as the third, lowest priority. No quality specifier indicates priority 1.0 (the highest). > But I do not know anything about this and would like to be told more. > > An alternative formatting is that semi-colons precede q settings, and > that if a format lacks a q setting, it has the highest priority. > > Thus, the above could be formatted like this > > Accept: text/plain; q=0.5, > text/html, text/x-dvi; q=0.8, > text/x-c My original was cut straight out of rfc2616 and is formatted badly (I think to empahsise the syntax over any arbritary textual ordering). A more sensible textual rendering would look like this: Accept: text/plain; q=0.5, text/html; q=1.0, text/x-dvi; q=0.8, text/x-c; q=1.0 Hope that's clearer.