Re: raw post data

From: Date: Fri, 21 Nov 2003 18:11:24 +0000
Subject: Re: raw post data
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-5646@lists.php.net to get a copy of this message
Doru Petrescu wrote:
I don't think this will help either as PHP always read the entire content-length BEFORE even loading the actual php script. As long as you using php as a web server module you cannot escape this.
this is true if either RAW_POST_DATA is populated or a post handler for the mime type of the POST request is activated, for POST requests that come with a mime type we have no handler registered for i am not sure right now ...
if you need to run something while the data is received we need to change the way php works. the way I see things is to put hook in the function that read the data from the client. This will allow execution of code while post data is received.
i already did (in a way) by introducing the php://input stream in PHP 4.3.0, although it actually is more about PUT than POST ... -- Hartmut Holzgraefe <hartmut@php.net>

« previous php.internals (#5646) next »