HTTP_RAW_POST_DATA

From: Date: Mon, 07 May 2001 10:59:55 +0000
Subject: HTTP_RAW_POST_DATA
Groups: php.general 
Request: Send a blank email to php-general+get-51715@lists.php.net to get a copy of this message
Hi, Could anyone help me with altering PHP sources? Or tell me please where may I ask this question? The problem is when PHP handles a POST request of a known Content-type (e.g. x-www-form-urlencoded), it leaves $HTTP_RAW_POST_DATA blank. I need to alter the sources so that PHP would always put the request data into this variable. This would allow me to handle malformed POST requests. For example, if a client sends a request of Content-type x-www-form-urlencoded and the data is NOT really "urlencoded", such request seems to get lost. I can't find the data neither in $HTTP_RAW_POST_DATA, nor in $HTTP_POST_VARS. I figured it would be great if PHP could always set $HTTP_RAW_POST_DATA independently of the Content-type.

« previous php.general (#51715) next »