Doc #60600 [Opn]: $HTTP_RAW_POST_DATA is always populated

From: Date: Sat, 01 Feb 2014 11:54:06 +0000
Subject: Doc #60600 [Opn]: $HTTP_RAW_POST_DATA is always populated
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10928@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60600&edit=1 ID: 60600 Updated by: krakjoe@php.net Reported by: ercoli at gmail dot com Summary: $HTTP_RAW_POST_DATA is always populated Status: Open Type: Documentation Problem Package: PHP options/info functions Operating System: linux PHP Version: 5.3.8 -Assigned To: +Assigned To: mike Block user comment: N Private report: N New Comment: Due to recently merged RFC'd patches, this should be looked at in the context of current versions of PHP. So assigning to someone useful ... Noteworthy, the report is originally made for an unsupported, outdated version of PHP, and is not a security issue. If whatever response you get from the assigned person is not satisfactory, please consider making the bug report using a supported, stable version of PHP. Thanks for taking the time to make PHP better :) Previous Comments: ------------------------------------------------------------------------ [2011-12-24 13:49:29] cataphract@php.net Your interpretation of "recognized MIME type" is off (only "application/x-www-form-urlencoded" and "multipart/form-data" are "recogized" in this sense) and your last sentence is also inaccurate (using php://input doesn't prevent the data from being loaded into memory; either it's already completely present in memory or otherwise it's not and it's the only the way to access the HTTP entity anyway). But in any case, the documentation is poor in this matter. Thanks ------------------------------------------------------------------------ [2011-12-23 11:23:18] ercoli at gmail dot com Description: ------------ $HTTP_RAW_POST_DATA is always populated when data is posted with content-type 'text/xml' or 'application/xml' (and enctype != "multipart/form-data" ) , even if the directive 'always_populate_raw_post_data' is set to Off. The manual says "the variable is populated only with unrecognized MIME type of the data", but as far as I can discern, 'text/xml' and 'application/xml' are both recognized mime type. The preferred method for accessing the xml POST data is php://input since we can use a streaming parser with low memory footprint. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60600&edit=1

« previous php.doc.bugs (#10928) next »