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? -Rasmus On Sun, 10 Nov 2002, Kjartan Mannes wrote: > Using telnet and raw http > > REQUEST > POST /test_post_data.php HTTP/1.0 > Host: www.example.com > Content-type: spam/spam > Content-length: 17 > > data=Test&op=Post > > PHP 4.2.3 REPLY > HTTP/1.1 200 OK > Date: Sun, 10 Nov 2002 13:42:26 GMT > Server: Apache/1.3.27 (Unix) PHP/4.2.3 > X-Powered-By: PHP/4.2.3 > Connection: close > Content-Type: text/html > > $_POST: > array(0) { > } > $HTTP_RAW_POST_DATA > string(17) "data=Test&op=Post" > > PHP 4.3-dev REPLY > HTTP/1.1 200 OK > Date: Sun, 10 Nov 2002 13:40:17 GMT > Server: Apache/1.3.27 (Unix) PHP/4.3.0-dev > X-Powered-By: PHP/4.3.0-dev > Connection: close > Content-Type: text/html > > $_POST: > array(0) { > } > $HTTP_RAW_POST_DATA > NULL > > > Since $_POST isn't populated I am assuming neither version of PHP > recognizes my spam/spam content type, but the current cvs version fails > to populate $HTTP_RAW_POST_DATA. So either my request is wrong and 4.2.3 > is accepting invalid input, or something has changed in PHP and it isn't > handling the POST request as expected anymore. > > -- > Kjartan <[EMAIL PROTECTED]> (http://natrak.net/) > :: "Bad Command or File Name. Good try, though." > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php