On Friday 21 December 2001 04:26 am, Eli Marmor wrote:
> Robert Mooney wrote:
> 
> > Is there any way to "peek" at client data from a module?  I.e. read without
> > removing it?  Specifically, I want my module to be able to read any POST
> > data, and allow mod_cgi to process normally.  Using the sample code below,
> > mod_cgi does not read any input from STDIN.
> > ...
> > I was under the impression REQUEST_CHUNK_PASS did what I was looking for, but
> > this is not the case.  mod_cgi can read the POST data until I call ap_get_
> > client_block(), after which... nothing.
> > 
> > I'm using Apache 1.3.22.
> 
> That's the problem;
> Move to 2.0.28, and use Input Filters.

This can be hacked into 1.3.  Whenever you read data, save it to a file on
the disk, and then modify the BUFF structure so that fd_in reads from that
file.  This is a very primitive form of input filtering, but it will work.

Ryan

______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to