Sujet : Re: [MacCafé] Version 3.03 is available
De : michael.baeuerle (at) *nospam* gmx.net (Michael Bäuerle)
Groupes : news.software.readersDate : 20. Oct 2024, 18:47:48
Autres entêtes
Message-ID : <AABnFTQ0bBAAAAuN.A3.flnews@WStation7.micha.freeshell.org>
References : 1
User-Agent : flnews/1.3.0pre13 (for GNU/Linux)
DV wrote:
[...]
MacCafé, newsreader for macOS, has been updated to version 3.03. It can
be downloaded from the website address given in my signature.
[...]
Just a side note for the optional header field "User-Agent":
|
| User-Agent: MacCafe/3.03/blue mountain (macOS 10.14.6 (18G9323) - iMac13,1)
^^^^^^^^^^^^^^
The marked part looks like a syntax error.
Syntax-Definition from RFC 5536:
<
https://datatracker.ietf.org/doc/html/rfc5536#section-3.2.13>
|
| user-agent = "User-Agent:" SP 1*product [CFWS] CRLF
| product = [CFWS] token [ [CFWS] "/" product-version ]
| product-version = [CFWS] token
For <token> RFC 5536 uses a reference to RFC 2045:
<
https://datatracker.ietf.org/doc/html/rfc2045#section-5.1>
|
| token := 1*<any (US-ASCII) CHAR except SPACE, CTLs,
| or tspecials>
| tspecials := "(" / ")" / "<" / ">" / "@" /
| "," / ";" / ":" / "\" / <">
| "/" / "[" / "]" / "?" / "="
| ; Must be in quoted-string,
| ; to use within parameter values
A parser should detect "MacCafe" as first <product> and "3.03" as
the associated <product-version>.
The second "/" would be allowed after a second <token> for a second
<product>, but not as additional <product-version> for the first
<product>.
Interpretation of "3.03/blue mountain" as <product-version> is not
allowed because "/" cannot be part of <token>.