NetBSD Problem Report #8768
Received: (qmail 294 invoked from network); 10 Nov 1999 07:27:45 -0000
Message-Id: <199911100726.QAA14301@icnmp9.icg.tnr.sharp.co.jp>
Date: Wed, 10 Nov 1999 16:26:24 +0900 (JST)
From: itohy@netbsd.org
Reply-To: itohy@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: ftp(1): User-Agent field doesn't conform HTTP/1.1
X-Send-Pr-Version: 3.95
>Number: 8768
>Category: bin
>Synopsis: ftp(1): User-Agent field doesn't conform HTTP/1.1
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 09 23:30:01 +0000 1999
>Closed-Date: Wed Nov 10 21:05:04 +0000 1999
>Last-Modified: Wed Nov 10 21:06:45 +0000 1999
>Originator: ITOH Yasufumi
>Release: 1.4M (Nov. 9, 1999)
>Organization:
>Environment:
System: NetBSD acha.my.domain 1.4M NetBSD 1.4M (ACHA) #9: Sun Nov 7 08:43:14 JST 1999 itohy@zun.my.domain:/usr/src/sys/arch/x68k/compile/ACHA x68k
>Description:
ftp(1) sends a line such as
User-Agent: NetBSD-1.4M/ftp
in the HTTP/1.x request header. This line does not strictly
conform RFC 2616 (HTTP/1.1 specification).
In RFC 2616, the User-Agent field is defined as follows:
User-Agent = "User-Agent" ":" 1*( product | comment )
comment = "(" *( ctext | quoted-pair | comment ) ")"
ctext = <any TEXT excluding "(" and ")">
token = 1*<any CHAR except CTLs or separators>
separators = "(" | ")" | "<" | ">" | "@"
| "," | ";" | ":" | "\" | <">
| "/" | "[" | "]" | "?" | "="
| "{" | "}" | SP | HT
quoted-pair = "\" CHAR
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
(snip)
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).
(Quoted from RFC 2616 Copyright (C) The Internet Society (1999).)
>How-To-Repeat:
Use ftp(1) against a WWW server without proxies,
and see the agent log on the server.
>Fix:
Change the field like as
User-Agent: NetBSD-ftp/1.0 (NetBSD 1.4M)
or
User-Agent: lukemftp/1.0b7 (NetBSD 1.4M)
or something.
(Is this an advertisement? :-)
>Release-Note:
>Audit-Trail:
From: Luke Mewburn <lukem@goanna.cs.rmit.edu.au>
To: itohy@netbsd.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8768: ftp(1): User-Agent field doesn't conform HTTP/1.1
Date: Wed, 10 Nov 1999 18:45:53 +1100
itohy@netbsd.org writes:
> ftp(1) sends a line such as
>
> User-Agent: NetBSD-1.4M/ftp
It doesn't anymore; I changed this about 12 hours before your PR
was submitted! :-)
> >Fix:
> Change the field like as
>
> User-Agent: NetBSD-ftp/1.0 (NetBSD 1.4M)
> or
> User-Agent: lukemftp/1.0b7 (NetBSD 1.4M)
>
> or something.
> (Is this an advertisement? :-)
I actually just send
User-Agent: NetBSD-ftp/1.0
or
User-Agent: lukemftp/1.0b7
I suppose I could add the `(NetBSD 1.4M)' comment, but it's not necessary.
From: itohy@netbsd.org (ITOH Yasufumi)
To: lukem@goanna.cs.rmit.edu.au
Cc: itohy@netbsd.org, gnats-bugs@gnats.netbsd.org
Subject: Re: bin/8768: ftp(1): User-Agent field doesn't conform HTTP/1.1
Date: Wed, 10 Nov 1999 16:59:34 +0900 (JST)
lukem@goanna.cs.rmit.edu.au writes:
> It doesn't anymore; I changed this about 12 hours before your PR
> was submitted! :-)
Oops...
Plese close the pr.
I tested this last night (in JST :).
> I suppose I could add the `(NetBSD 1.4M)' comment, but it's not necessary.
Agreed.
State-Changed-From-To: open->closed
State-Changed-By: lukem
State-Changed-When: Wed Nov 10 13:05:04 PST 1999
State-Changed-Why:
the pr was fixed before it was raised ... ;-)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.