php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65250 PHP form input parsing - Support all HTTP verb for php://input
Submitted: 2013-07-12 13:19 UTC Modified: 2013-07-20 16:16 UTC
From: matti dot jarvinen at nitroid dot fi Assigned: arpad (profile)
Status: Closed Package: URL related
PHP Version: 5.4.17 OS: *
Private report: No CVE-ID: None
 [2013-07-12 13:19 UTC] 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".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-19 23:07 UTC] yohgaki@php.net
-Summary: PHP form input parsing +Summary: PHP form input parsing - Support all HTTP verb for php://input
 [2013-07-19 23:07 UTC] yohgaki@php.net
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.
 [2013-07-20 16:16 UTC] arpad@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: arpad
 [2013-07-20 16:16 UTC] arpad@php.net
php://input can always be used when enable_post_data_reading=0 (since 5.4) and is just the request body - other verbs can already be used.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC