Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69459 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48725 invoked from network); 2 Oct 2013 17:28:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2013 17:28:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=catch.dave@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=catch.dave@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.182 as permitted sender) X-PHP-List-Original-Sender: catch.dave@gmail.com X-Host-Fingerprint: 74.125.82.182 mail-we0-f182.google.com Received: from [74.125.82.182] ([74.125.82.182:42228] helo=mail-we0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/EB-23255-E975C425 for ; Wed, 02 Oct 2013 13:27:58 -0400 Received: by mail-we0-f182.google.com with SMTP id t61so1159479wes.13 for ; Wed, 02 Oct 2013 10:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JeT4+SryavkiuzafA1m1xN/EUaNeaVkqTUfmNH07aJ0=; b=nddV4DRU4nU3yMi+Z7kH8jE2fOBVn2irWdSF0DSagUeL+vz6D8phz5unQGcQXg43Dc n9NJqpz3bMsmAF9JdVaz7LUSAA5sTbUVO3u7sfYMVqxfppU8my9+X6A14G1H2103uANh 0RwNzo93xPFCOFyIbO9Yvl3feaOovQDhK+hOAeKU+rRturXkAI/b1Jq2m75kuF6YhsRs T2mv2/lrGA2O1wkcGtA4ZvGxx+O7CgtvJhzQesqT5XHj46XagKbuZ++41/d2G5w847w8 viHh2XRpiQZtOJuqcw2CBfJ91z4x4f/nwpjIVxLLJ3YtQJTNZAOPc5tibggu1tL0n8K9 u4fA== X-Received: by 10.180.36.36 with SMTP id n4mr3091490wij.62.1380734875247; Wed, 02 Oct 2013 10:27:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.224.142 with HTTP; Wed, 2 Oct 2013 10:27:35 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Oct 2013 11:27:35 -0600 Message-ID: To: Michael Wallner Cc: PHP Internals Content-Type: multipart/alternative; boundary=e89a8f502feac4a92704e7c563bf Subject: Re: [PHP-DEV] HTTP supergloblas and request body/query (was: Parsing PUT data) From: catch.dave@gmail.com (Dave) --e89a8f502feac4a92704e7c563bf Content-Type: text/plain; charset=ISO-8859-1 > Further, I propose to remove the POST method restriction for handling request bodies and solely rely on the content type to trigger the parser(s). (*) +1 This would solve the with parsing multi-form data with PUT requests (and possibly any future method types), thus enabling full REST support :) On 2 October 2013 00:59, Michael Wallner wrote: > Since ever people are confused by _GET and _POST superglobals, > because, despite their name, they do not (really) depend on the > request method. Therefor I propose to phase out $_GET and name it > $_QUERY and I propose to phase out $_POST and name it $_FORM (I'm not > 100% confident with the latter yet, though). > > Further, I propose to remove the POST method restriction for handling > request bodies and solely rely on the content type to trigger the > parser(s). (*) > > There are already parsers for application/x-www-form-urlencoded and > multipart/form-data in the core. One could think of providing an API > to add content type handlers from extensions, ext/json may be an > example, like it is hacked into pecl_http-v2. > > Thoughts, objections, insults? > > (*) We'd probably have to revisit all *post* INI variables, though. > > -- > Regards, > Mike > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --e89a8f502feac4a92704e7c563bf--