Req #65250 [Opn]: PHP form input parsing - Support all HTTP verb for php://input

From: Date: Fri, 19 Jul 2013 23:07:14 +0000
Subject: Req #65250 [Opn]: PHP form input parsing - Support all HTTP verb for php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-180362@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65250&edit=1

 ID:                 65250
 Updated by:         yohgaki@php.net
 Reported by:        matti dot jarvinen at nitroid dot fi
-Summary:            PHP form input parsing
+Summary:            PHP form input parsing - Support all HTTP verb for
                     php://input
 Status:             Open
 Type:               Feature/Change Request
 Package:            URL related
 Operating System:   *
 PHP Version:        5.4.17
 Block user comment: N
 Private report:     N

 New Comment:

php://input is for standard input. Therefore, it does not make sense using 
php://input other than HTML forms. i.e. HTML forms send vars via POST method and 
POST method vars are sent to standard input.

Since PHP only supports GET/POST, we may support other HTTP verbs PUT/DELETE/etc.


Previous Comments:
------------------------------------------------------------------------
[2013-07-12 13:19:15] matti dot jarvinen at nitroid dot fi

Description:
------------
On some occations PHP has to work with data sent from different sources. Form data parsing with
complex data (arrays) differs from the PHP in Ruby, ASP, JSP and the like. It would be highly
beneficial for PHP to have _always_ possibility to determine custom input parser. 

Currently php://input can be only used for this end if input type isn't
"multipart/form-data".



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=65250&edit=1


Thread (3 messages)

« previous php.bugs (#180362) next »