From owner-freebsd-bugs Mon Dec 14 08:48:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA10827 for freebsd-bugs-outgoing; Mon, 14 Dec 1998 08:48:36 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from trueno.cs.tu-berlin.de (trueno.cs.tu-berlin.de [130.149.17.160]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA10817; Mon, 14 Dec 1998 08:48:23 -0800 (PST) (envelope-from wosch@cs.tu-berlin.de) Received: from freno.cs.tu-berlin.de (wosch@freno.cs.tu-berlin.de [130.149.17.167]) by trueno.cs.tu-berlin.de (8.9.1/8.9.1) with ESMTP id RAA27155; Mon, 14 Dec 1998 17:08:13 +0100 (MET) Received: (from wosch@localhost) by freno.cs.tu-berlin.de (8.9.1/8.9.0) id RAA01411; Mon, 14 Dec 1998 17:08:12 +0100 (MET) Message-ID: <19981214170811.A1176@freno.cs.tu-berlin.de> Date: Mon, 14 Dec 1998 17:08:11 +0100 From: Wolfram Schneider To: Dag-Erling Smorgrav , Wolfram Schneider Cc: Steve Price , wosch@FreeBSD.ORG, jkh@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: misc/8038 References: <19981212201923.B4451@panke.de.freebsd.org> <19981213200438.A627@panke.de.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: ; from Dag-Erling Smorgrav on Mon, Dec 14, 1998 at 03:17:03PM +0100 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 1998-12-14 15:17:03 +0100, Dag-Erling Smorgrav wrote: > Wolfram Schneider writes: > > Homepages - e.g. http://www.freebsd.org - does not require a trailing slash. > > Yes they do. Please read RFC1738. URLs such as the one above lack the > (non-optional) document part. I read now the RFC1738 and found 3 paragraphs which says the "/" may also be omitted. RFC1738 [...] 3.1. Common Internet Scheme Syntax While the syntax for the rest of the URL may vary depending on the particular scheme selected, URL schemes that involve the direct use of an IP-based protocol to a specified host on the Internet use a common syntax for the scheme-specific data: //:@:/ Some or all of the parts ":@", ":", ":", and "/" may be excluded. The scheme specific data start with a double slash "//" to indicate that it complies with the common Internet scheme syntax. The different components obey the following rules: [...] 3.3. HTTP The HTTP URL scheme is used to designate Internet resources accessible using HTTP (HyperText Transfer Protocol). The HTTP protocol is specified elsewhere. This specification only describes the syntax of HTTP URLs. An HTTP URL takes the form: http://:/? where and are as described in Section 3.1. If : is omitted, the port defaults to 80. No user name or password is allowed. is an HTTP selector, and is a query string. The is optional, as is the and its preceding "?". If neither nor is present, the "/" may also be omitted. 5. BNF for specific URL schemes ; HTTP httpurl = "http://" hostport [ "/" hpath [ "?" search ]] hpath = hsegment *[ "/" hsegment ] hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ] search = *[ uchar | ";" | ":" | "@" | "&" | "=" ] > > Adding the / to the homepage is the job of the web browser, > > not of the web server. > > Adding the missing slash is a misfeature of popular browsers. > > When it comes to missing slashes after subdirectory names (e.g. > ), there's no way for the browser to > know that there should be a trailing slash there. All HTTP/1.x servers > I know of send back a code 301. > > DES > -- > Dag-Erling Smorgrav - des@flood.ping.uio.no > -- Wolfram Schneider http://freebsd.org/~w/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message