[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: http://[user[:pass]@]host/ syntax (was: Re: svn merge fails in 0.15)

From: Matt Quail <matt_at_cortexebusiness.com.au>
Date: 2002-11-18 22:41:06 CET

> Just want to mention that foo@bar is not defined for the HTTP scheme,
> but only for the FTP scheme, AFAIK. At least, last time I studied the
> RFCs. I do not mean to deny using this notation - just that this use
> is not covered by the standards for what I know.

The "//user:password@host:port/path" notation is defined as "Common
Internet Scheme Syntax" in secion 3.1 of RFC 1738. This section does not
specify that the "http" URL schema follows this syntax, merely:

> The scheme specific
> data start with a double slash "//" to indicate that it complies with
> the common Internet scheme syntax.

Secion 3.3 "HTTP" says that the syntax for the http schema is

    http://<host>:<port>/<path>?<searchpart>

and further states:

> No user name or password is allowed.

D'oh!

So if you are a "producer" of http URLs, you would be breaking RFC 1738
if you put the "username:password@" in a http URL. But I suppose you
could be more lenient as a "parser" of URLs. Allowing a super-set of the
http schema defined by RFC 1738 may still mean you are a valid 1738
parser...

In any case, I definitely find the "username:password@" syntax useful!

=Matt

-- 
Matt Quail -- Senior Software Engineer
http://www.cortexebusiness.com.au/
mailto:matt@cortexebusiness.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 18 22:38:56 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.