Re: $HTTP_RAW_POST_DATA

From: Date: Sun, 10 Nov 2002 17:04:28 +0000
Subject: Re: $HTTP_RAW_POST_DATA
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-90731@lists.php.net to get a copy of this message
On Sun, 10 Nov 2002, Rasmus Lerdorf wrote: > Hrm.. Ok, actually Hartmut changed this recently. See: > > > http://cvs.php.net/diff.php/php4/main/php_content_types.c?login=2&r1=1.21&r2=1.22&ty=u > > It works when you turn on always_populate_raw_post_data, right? kind of. it doesn't quite follow the doc blurb - even if always_populate is turned on, if the content type IS recognized, and it's not the default - which right now means only multipart/form-data far as i can tell - then HTTP_RAW_POST_DATA is not set. something should be changed to take that into account, either making it work with multipart/form-data or changing the documentation. also, there was a small change i had to make in php_content_types.c to make it pick up XML data without getting an error about the string not being null-terminated. i'm attaching a diff file.

« previous php.dev (#90731) next »