Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58045 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71430 invoked from network); 24 Feb 2012 22:55:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2012 22:55:50 -0000 Authentication-Results: pb1.pair.com header.from=jeremiah.dodds@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jeremiah.dodds@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: jeremiah.dodds@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:43527] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/02-17132-475184F4 for ; Fri, 24 Feb 2012 17:55:49 -0500 Received: by wibhm4 with SMTP id hm4so2069225wib.29 for ; Fri, 24 Feb 2012 14:55:46 -0800 (PST) Received-SPF: pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.180.86.9 as permitted sender) client-ip=10.180.86.9; Authentication-Results: mr.google.com; spf=pass (google.com: domain of jeremiah.dodds@gmail.com designates 10.180.86.9 as permitted sender) smtp.mail=jeremiah.dodds@gmail.com; dkim=pass header.i=jeremiah.dodds@gmail.com Received: from mr.google.com ([10.180.86.9]) by 10.180.86.9 with SMTP id l9mr9040690wiz.15.1330124146194 (num_hops = 1); Fri, 24 Feb 2012 14:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=GakLQwdJswmz6ef9YhqpHjhmqSpwcVky+dcUwSjBYM0=; b=vxy6smz/daSDtMusQCo/4xsR+GtxcoQKnXhdtSgP1d4fwqyzlTNNLCaSDgP33xlfiL q/w2rkAoOLIiSfN7qBvltt/qg8sr7UM1Ff+g2aMIoWTR2LNTy5UHsyphbiiuXI8XRBNa 1RJcx1H7TNyxfvBsMRGNBYyxijWExTQ4rt+Ng= MIME-Version: 1.0 Received: by 10.180.86.9 with SMTP id l9mr7291713wiz.15.1330124146100; Fri, 24 Feb 2012 14:55:46 -0800 (PST) Received: by 10.223.75.149 with HTTP; Fri, 24 Feb 2012 14:55:46 -0800 (PST) In-Reply-To: <4F4811E6.4050201@garfieldtech.com> References: <8D8E9A0839FE464FBBDF2B499DAFA596@gmail.com> <88ad33db205558862288b3114ef4c391.squirrel@www.l-i-e.com> <4F480C5B.30606@garfieldtech.com> <96462fbc4e243e75b11b455624ac4140.squirrel@www.l-i-e.com> <4F4811E6.4050201@garfieldtech.com> Date: Fri, 24 Feb 2012 17:55:46 -0500 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] $_PARAMETERS Super Global Object From: jeremiah.dodds@gmail.com (Jeremiah Dodds) On Fri, Feb 24, 2012 at 5:40 PM, Larry Garfield wr= ote: > On 2/24/12 4:34 PM, Richard Lynch wrote: >> >> On Fri, February 24, 2012 4:16 pm, Larry Garfield wrote: >>> >>> On 2/24/12 3:28 PM, Richard Lynch wrote: >>> Because GET and POST are not even remotely the same thing and treating >>> them as completely interchangeable is a bug in the first place. >> >> >> We'll have to agree to disagree here. >> >> To me, it's just a request for some content, and in a REST API that's >> read-only, I just don't care if the consumer sends their request as >> GET or POST. =A0I'll cheerfully give them what they wanted. > > > Except that per HTTP, GET and POST are completely different operations. = =A0One > is idempotent and cacheable, the other is not idempotent and not cacheabl= e. > =A0I very much care which someone is using. Correct me if I'm wrong, but you're referring to the HTTP *method* used. A POST can be made to a URL that includes a query-string, but what that means as far as interpreting the variables is undefined as far as I know. Because of that, I think it's a bad idea to either treat them as the same thing, or rely on both $_POST and $_GET parameters being present.