|
Home > Archive > Web Servers on Unix and Linux > March 2004 > Apache filters - mixing in/out filter
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Apache filters - mixing in/out filter
|
|
| Zvika F. 2004-03-21, 10:35 am |
| Hi,
i'm trying to build an Apache LOGGING input+output filters , so that
each request+response will be saved to disk in such way that each
request+response will be in a separate file (the file will contain
both of the request and the response) . In addition i would like to :
- On some conditions, the filter will close the connection (return 500
or something ...)
- i would like to pass the input-data to the next input-filter ONLY
when i have the whole request , and not immediately
Till now, i've succeeded to store the request+response to disk , but i
cannot figure out how to "link" (attach) a request to it's response or
how to "close" the connection .
Any reply wold be greatly appreciated
Zvika Ferentz
| |
| Nick Kew 2004-03-22, 2:35 am |
| In article <ef78e11f.0403210731.426c7acd@posting.google.com>,
zferentz@hotmail.com (Zvika F.) writes:
> Till now, i've succeeded to store the request+response to disk , but i
> cannot figure out how to "link" (attach) a request to it's response or
Open the output file descriptor on the request_rec before any data
go through the filters.
> how to "close" the connection .
You seem to mean return an error by that. Just have your filter function
return 500 or other non-OK status.
--
Nick Kew
|
|
|
|
|