W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > January to April 1995

Re: Grammar for User-Agent header

From: Henrik Frystyk Nielsen <frystyk@ptsun00.cern.ch>
Date: Tue, 17 Jan 95 18:29:23 +0100
Message-Id: <9501171729.AA04284@ptsun03.cern.ch>
To: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com, eric@spyglass.com

> The grammar for the User-Agent header currently reads like this:
> 
> >       User-Agent      = "User-Agent" ":" 1*( product )
> >
> >       product         = token ["/" product-version]
> >       product-version = 1*DIGIT "." 1*DIGIT
> 
> In my opinion, this is a bit too restrictive.  For example, all of the
> following version numbers are illegal using this grammar.
> 
> 1               simple integer, no minor rev
> 2.0a1           Apple standard format for an alpha release
> 1.0.2.87        Microsoft standard format
> 
> Other version numbering schemes may cause other problems.  May I suggest
> that we not try to impose the format of the version number beyond saying
> which characters we allow there?

Sounds fair - what about:

	User-Agent      = "User-Agent" ":" 1*( product )
	product         = token ["/" token]


-- cheers --

Henrik Frystyk
frystyk@W3.org
+ 41 22 767 8265
World-Wide Web Project,
CERN, CH-1211 Geneva 23,
Switzerland
Received on Tuesday, 17 January 1995 09:33:02 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:31:13 EDT