Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

The grammar for URL's at w3.org does not have an equals sign (=) anywhere in it...

Also it specifies that the separator of search terms is the + symbol, not the &

Does anyone know where the official grammar for URLs is kept?

Replies are listed 'Best First'.
Re: Official grammar for URL?
by neophyte (Curate) on Oct 09, 2000 at 13:34 UTC
    W3.org is the right adress to look for the syntax rules. You may also look at
     
    neophyte
Re: Official grammar for URL?
by extremely (Priest) on Oct 09, 2000 at 14:19 UTC

    A. Yes it does list the "=", in reserved.

    B. Wow did you find an old doc. =)

    C. What comes after the "?", the query string or searchpart is left undefined in form, except that it is expected that "#" will terminate the query string and begin the fragment reference. Beyond that, it is up to the HTTP standard as to how the query strings will be handled. See here

    D. "+" gets turned into the space char, that rule was for when the query was simply a list of keywords, not when name=value pairs are used.

    E. I have no friggin idea where the rules for query strings is set. It may be that it is up to each http engine. I sure can't find a document... I do recall from being on the mod_perl and apache lists that "&" and ";" are interchangable under many servers as the pair separators.

    --
    $you = new YOU;
    honk() if $you->love(perl)

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Official grammar for URL?
by mdillon (Priest) on Oct 09, 2000 at 20:47 UTC
    since you seem to be interested in HTTP URL's in specific, you might want to take a look at the HTTP RFC. i found it useful for writing some code for turning embedded URL's into hyperlinks in an HTML-ized viewer for plain text messages.