trouble using $HTTP_RAW_POST_DATA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Allman

    trouble using $HTTP_RAW_POST_DATA

    I need to have the contents of $HTTP_RAW_POST_ DATA because of non-regular
    uploads (from a browser to my home-made WebDAV-server). However, no matter
    what I do, it is always NULL. I guess the following script should return
    SOMETHING in $HTTP_RAW_POST DATA if "always_populat e_raw_post_data 1" is
    added to the php.ini file (and yes, I've restarted apache :-)... so, why is
    it empty and how can I get the RAW post data?

    test.php:

    <form action="<?echo( $PHP_SELF)?>" method="post">
    <input type="text" value="you-suck">
    <input type="submit">
    </form>
    <?php
    echo("Raw post data: ".$HTTP_RAW_POS T_DATA."<br>\n" );
    echo("Raw post data decoded: ".base64_decode ($HTTP_RAW_POST _DATA)."<br>\n" );
    echo("<hr>");
    phpinfo();
    ?>



    Allman


Working...