Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78026 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20642 invoked from network); 14 Oct 2014 15:49:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 15:49:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:48310] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/D7-18603-F064D345 for ; Tue, 14 Oct 2014 11:49:36 -0400 Received: by mail-wi0-f181.google.com with SMTP id hi2so10634795wib.2 for ; Tue, 14 Oct 2014 08:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ImBteOXBqF5mDHpgLhRyJ16fpRQwD1QHfcZfoUhyOSY=; b=Ubh6mR17CGQumdzOc5SQc6ikX5/Od+gGI4evDt8eEDS5FZ9oa5lTf9d0M29ncQ9iUq YptJxmEhD/4i50hQrfRxaLZBa3TkPRqzq10kZ5zWjloajWGB93Bz8Tepj9dEUbpRtQNB oUFFCLmyoFT+NuvLQZOOC59qv2wFc5bedNtMRI2e8s0Q/J6/ffzP8QSIekZacLxaQo0J WMwG9EwOWa/cr5MtzzWDT4WDDf9DR3xVimH3yAUwnqcx23WkehBxUySPq8SEpZT8O5Xc ewSzHXvyh7iUM1uD4AIgQvVmrpj0TR0Hxk5YkKCSErxB75Pv2BgtWVWlfFr9a9DI8MBG qQMA== X-Received: by 10.180.126.9 with SMTP id mu9mr6481523wib.38.1413301772666; Tue, 14 Oct 2014 08:49:32 -0700 (PDT) Received: from [192.168.0.177] ([62.189.198.114]) by mx.google.com with ESMTPSA id bt9sm20607059wjc.44.2014.10.14.08.49.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 08:49:31 -0700 (PDT) Message-ID: <543D460A.6010605@gmail.com> Date: Tue, 14 Oct 2014 16:49:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: internals@lists.php.net References: <776669CE-9E8C-4069-9834-C7275CCA0EF4@ajf.me> <20141014135043.GH11416@phcomp.co.uk> In-Reply-To: <20141014135043.GH11416@phcomp.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: rowan.collins@gmail.com (Rowan Collins) Alain Williams wrote (on 14/10/2014): > On Tue, Oct 14, 2014 at 01:54:55PM +0100, Andrea Faulds wrote: >> On 14 Oct 2014, at 13:47, Kris Craig wrote: >> >>> Hey guys, >>> >>> Does anybody know why we have $_GET and $_POST, but not $_PUT and >>> $_DELETE? As far as I can tell, the only way to get these out currently is >>> to parse their values by reading the incoming stream directly. >>> >>> Is there a reason why we don't want this or is it just that nobody has >>> actually written it yet? >> $_GET and $_POST are really misnomers. $_GET is query string parameters, $_POST is request body data. >> >> We should just put the request bodies for all requests, not just POST, into $_POST. > Unless I have misunderstood what you are saying ... > > as a developer I do want to know the difference between fields in a POST form > and query items on the URL. I will sometimes use them together, eg: > >
> ... > > and specifically check $_GET['context'] - there might be a $_POST['context'] but > that is treated completely differently. > You have misunderstood: the request body is the data sent with the HTTP request, separate from the URL.