Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55123 invoked from network); 14 Oct 2014 13:24:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Oct 2014 13:24:09 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:37976] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/E5-26074-9F32D345 for ; Tue, 14 Oct 2014 09:24:09 -0400 Received: by mail-wi0-f180.google.com with SMTP id em10so10211682wid.1 for ; Tue, 14 Oct 2014 06:24:06 -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; bh=HiSggpj4c6bWzimFSC2/fa5cqHi5AU0H9ehTbV35Pyk=; b=InS1/mrBObEb7MXpwIJIrIyu4CyAbnmvzKAlwXVm9mt7lGiqM0n6RVzv2jHid5i7Or 3dkXCr5l2k5k5FDvdaLrhWs3Sr71KfmInhFJkpGGyD3/Xbs6/NpdEQ/V+MNZoIgFBRIB QwgpMcX2SKyU/pzZ4wrenY/knUDngoaz3/0wRVWzHk6iONaGu9IhFCmyUl8medt2ZMC1 pcKBD+BE5yz2UkwvV73FveIN2GKz5L1MqbPSox8s0gcvRNH9rzGKzYA2o5oEu+bEYV0Y apQQSThGM7azFT/A4n6/G8k5it/odNISjgy4kH6Xol1bV60D9gx9eWcyjLWqCx1efx9x oreA== X-Received: by 10.180.87.73 with SMTP id v9mr5633800wiz.22.1413293046470; Tue, 14 Oct 2014 06:24:06 -0700 (PDT) Received: from [192.168.0.177] ([62.189.198.114]) by mx.google.com with ESMTPSA id ll20sm15731507wic.14.2014.10.14.06.24.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 06:24:05 -0700 (PDT) Message-ID: <543D23F4.4010609@gmail.com> Date: Tue, 14 Oct 2014 14:24:04 +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: <9CAD580B-48C1-4D91-B761-20F8A9804A66@benramsey.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------040309040804050102080603" Subject: Re: [PHP-DEV] New globals for PUT and DELETE From: rowan.collins@gmail.com (Rowan Collins) --------------040309040804050102080603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Kris Craig wrote (on 14/10/2014): > The Content-Type argument really isn't an issue since the API developer > should be setting the right headers for the request method, anyway. I think the point is that there's currently no mechanism for data from anything other than application/x-www-form-urlencoded and multipart/form-data to end up in $_POST anyway. There was a discussion of that a while back, and I think there's talk on PHP-FIG about how standardising HTTP interfaces. It comes down to needing some flexibility over /how/ different content types are parsed, which makes a function-call based API make more sense than one that silently slurps the data on every page load. --------------040309040804050102080603--