SunshinePHP Developer Conference 2015

$HTTP_RAW_POST_DATA

(PHP 4, PHP 5)

$HTTP_RAW_POST_DATA生の POST データ

説明

警告

この機能は PHP 5.6.0 で 非推奨になります。この機能に頼らないことを強く推奨します。

$HTTP_RAW_POST_DATA には生の POST データが格納されます。 always_populate_raw_post_data も参照ください。

$HTTP_RAW_POST_DATA の代わりに、 php://input を使うべきです。

add a note add a note

User Contributed Notes 2 notes

up
9
Ricardo Martins
1 year ago
what is exaclty raw POST data?

Answer:

$_POST can be said as and outcome after splitting the $HTTP_RAW_POST_DATA, php splits the raw post data and formats in the way we see it in the $_POST For example:

    $HTTP_RAW_POST_DATA looks something like this

key1=value1&key2=value2

    then $_POST would look like this:

$_POST = array(
    "key1" => "value1",
    "key2" => "value2",);
up
5
Ray dot Paseur at GMail dot com
4 years ago
To get the Raw Post Data:

<?php $postdata = file_get_contents("php://input"); ?>

Please see the notes here:
http://us.php.net/manual/en/wrappers.php.php
To Top