Re: Curl with asp pages....
| From: | Benjamin Hawkes-Lewis | Date: | Thu, 18 Dec 2008 02:11:56 +0000 |
| Subject: | Re: Curl with asp pages.... | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284759@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
Why did you think that? I think you'll find square brackets are a PHPism and that PHP is actually a freakish oddball in not interpreting key=bar&key=foo&key=quux as $_GET['key'] = array( 'bar', 'foo', 'quux' ); Contrast: * PERL CGI module: http://docstore.mik.ua/orelly/linux/cgi/ch05_02.htm * Python urlparse library: http://docs.python.org/library/urlparse.html#urlparse.parse_qs * Ruby on Rails: http://dev.rubyonrails.org/ticket/6645 IIRC there's nothing in the URI, HTML, or CGI specs that enforces how these should be interpreted. -- Benjamin Hawkes-LewisThere is a slight difference in how ASP handles multiple form fields that share the same name (as well as SELECT MULTIPLE lists) such that ASP does not need (and should not use) square brackets in field names the way PHP does. AndrewI thought that square brackets were actually part of the HTML spec, not PHP, so the fact that ASP.Net cannot use them is just another example of M$ doing their own thing again...