Re: HTTP supergloblas and request body/query (was: Parsing PUT data)

From: Date: Wed, 02 Oct 2013 11:37:12 +0000
Subject: Re: HTTP supergloblas and request body/query (was: Parsing PUT data)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-69447@lists.php.net to get a copy of this message
On 02.10.2013, at 15:12, Leigh <leight@gmail.com> wrote: > On 2 October 2013 08:31, Michael Wallner <mike@php.net> wrote: >> >> I had it, but I'm not sure $_BODY fits either, because it should be an >> array. Currently only form data fits the purpose of de-serialisation >> of a request body. >> > > Not so sure about that. I don't think there is a rule that says a body > _has_ to be in query string name=value format, or that multipart > elements _have_ to have a name=something attribute. I could quite > easily imagine PUT requests containing a textual body without an > associated field name (the URI would contain the field name). > > (correct me if I'm wrong) In these cases, Content-type of body would different. And proposal mentions that interpretation should happen strictly basing on the content type -- Alexey Zakhlestin CTO at Grids.by/you https://github.com/indeyets PGP key: http://indeyets.ru/alexey.zakhlestin.pgp.asc

Attachment: [application/pgp-signature] Message signed with OpenPGP using GPGMail signature.asc
« previous php.internals (#69447) next »