From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59549 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?Q?Bj=F8rn_Mork?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Using versions instead of XEmacs codenames in User-Agent Date: Mon, 10 Jan 2005 09:42:02 +0100 Organization: Doorknobs ourselves Ducatis Message-ID: <87wtulzndx.fsf@obelix.mork.no> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1105346134 4708 80.91.229.6 (10 Jan 2005 08:35:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 08:35:34 +0000 (UTC) Original-X-From: ding-owner+M8089@lists.math.uh.edu Mon Jan 10 09:35:28 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cnv1M-0008Tg-00 for ; Mon, 10 Jan 2005 09:35:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CnuuV-0005OO-00; Mon, 10 Jan 2005 02:28:23 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CnuuN-0005OI-00 for ding@lists.math.uh.edu; Mon, 10 Jan 2005 02:28:15 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CnuuG-0004x2-Qe for ding@lists.math.uh.edu; Mon, 10 Jan 2005 02:28:08 -0600 Original-Received: from news by quimby.gnus.org with local (Exim 3.35 #1 (Debian)) id 1CnuuF-00055h-00 for ; Mon, 10 Jan 2005 09:28:07 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 87 Original-NNTP-Posting-Host: 248.245.120.148.in-addr.arpa Original-X-Trace: quimby.gnus.org 1105345687 19116 148.120.245.248 (10 Jan 2005 08:28:07 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 10 Jan 2005 08:28:07 +0000 (UTC) User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:dNeMzBof+x4G8J4Q77a+f9qC7kc= Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59549 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59549 Steve Youngs writes: > * Reiner Steib writes: > > > On Sun, Jan 09 2005, Steve Youngs wrote: > >> The default settings should give a User-Agent header similar to the > >> one in this message's headers. > > > | User-Agent: Gnus/5.110003 (No Gnus v0.3) SXEmacs/22.1.1 "Aston Martin" (linux) > > > Is a quoted string like "Aston Martin" allowed in RFC 2616? > > ,----[ from RFC 2616 ] > | 14.43 User-Agent > | > | The User-Agent request-header field contains information about the > | user agent originating the request. This is for statistical purposes, > | the tracing of protocol violations, and automated recognition of user > | agents for the sake of tailoring responses to avoid particular user > | agent limitations. User agents SHOULD include this field with > | requests. The field can contain multiple product tokens (section 3.8) > | and comments identifying the agent and any subproducts which form a > | significant part of the user agent. By convention, the product tokens > | are listed in order of their significance for identifying the > | application. > | > | User-Agent = "User-Agent" ":" 1*( product | comment ) > | > | Example: > | > | User-Agent: CERN-LineMode/2.15 libwww/2.17b3 > | > | 3.8 Product Tokens > | > | Product tokens are used to allow communicating applications to > | identify themselves by software name and version. Most fields using > | product tokens also allow sub-products which form a significant part > | of the application to be listed, separated by white space. By > | convention, the products are listed in order of their significance > | for identifying the application. > | > | product = token ["/" product-version] > | product-version = token > | > | Examples: > | > | User-Agent: CERN-LineMode/2.15 libwww/2.17b3 > | Server: Apache/0.8.4 > | > | Product tokens SHOULD be short and to the point. They MUST NOT be > | used for advertising or other non-essential information. Although any > | token character MAY appear in a product-version, this token SHOULD > | only be used for a version identifier (i.e., successive versions of > | the same product SHOULD only differ in the product-version portion of > | the product value). > `---- > > Going by that, using quoted text "like this" should be fine. No, it isn't. quoting more from RFC 2616: token = 1* separators = "(" | ")" | "<" | ">" | "@" | "," | ";" | ":" | "\" | <"> | "/" | "[" | "]" | "?" | "=" | "{" | "}" | SP | HT > > Upto now, we had it inside the bracket: > > | [...] XEmacs/21.4 (Security Through Obscurity, berkeley-unix) > > Yep, however, IMHO, this... > > SXEmacs/22.1.1 (Aston Martin, berkeley-unix) > > doesn't look anywhere near as nice as... > > SXEmacs/22.1.1 "Aston Martin" (berkeley-unix) Maybe. But it doesn't really matter since the first version uses a perfectly legal comment while the second is an invalid User-Agent field. Bjørn -- Save the Honeywell dps8s!