Re: $HTTP_RAW_POST_DATA

From: Date: Sun, 10 Nov 2002 12:26:43 +0000
Subject: Re: $HTTP_RAW_POST_DATA
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-90727@lists.php.net to get a copy of this message
At 12:55 10-11-2002, Kjartan Mannes wrote: [...]
+          Contains the RAW POST data.  For this variable to exist,
+          there must be a POST request and either the mime type of
+          the POST data must be unrecoginized
[...]
<form action="<?php echo $PHP_SELF; ?>" method="post"> Send this post data: <input name="data" type="text">
[...]
I get this output when always_populate_raw_post_data is off: $_POST: array(2) {
    ["data"]=>
    string(4) "Test"
    ["op"]=>
    string(4) "Post"
} $HTTP_RAW_POST_DATA NULL
Fits like a glove. By default forms are set to "application/x-www-url-encoded", which is recognized. Read up on the 'enctype' attribute of forms and/or use enctype="multipart/formdata" and upload a file, with an extension, that isn't known by your browser (.foobar would be a good guess). Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua

« previous php.dev (#90727) next »