in reply to Re: Bad Practice
in thread Bad Practice

Use of ";" as separator?! I never saw that!

I have some modules that parse the incoming data for GET and POST urlencoded. They use only "&".

Can you send some browser name that use ";"? Or any doc that tell that ";" can be used?

I need to see if the modules need some update. ;-P

Update: I saw in CGI.pm inside sub parse_params:
    my(@pairs) = split(/[&;]/,$tosplit);

Graciliano M. P.
"The creativity is the expression of the liberty".

Replies are listed 'Best First'.
Re: Re: Re: Bad Practice
by bart (Canon) on Feb 27, 2003 at 18:13 UTC
    At least it's mettioned in the text of RFC-1866, section 8.2.1. See the bottom of that paragraph.
      Thanks! Is better to see the oficial doc. ;-P

      Graciliano M. P.
      "The creativity is the expression of the liberty".

      just being pedantic but since you have included the link to rfc1866 I have a question, given:

      "...The form field names and values are escaped: space characters are replaced by `+', and then reserved characters are escaped as per URL;..."

      how is it that a '+' can be recovered from an encoded value?

        The spec is not saying to double encode the plus sign. Really. Of course you might just opt to do all of your encoding in one pass and using only the hex values. I think that's the default for Internet Explorer anyway.


        Seeking Green geeks in Minnesota

Re: Bad Practice
by Anonymous Monk on Feb 27, 2003 at 17:42 UTC
    I don't recall where, but I have seen ";"s used in a URL before. I think it was related to separating session keys from the rest of the query. It's not part of the normal query string format, but I have seen it used in some instances.

    -Alex