Intercept request/response

2020-12-01 Thread Andre Rothe
Hi, I use mod_ext_filter to intercept requests and responses to another Apache module, which sends/receives data to/from a Java service on the same machine. The mod_ext_filter runs PHP scripts to modify the data on the way from/to the client's browser. Every request/response starts its own

Re: Change the content-length header for other filters

2017-01-12 Thread Andre Rothe
ange the content-length header for other filters On Thu, Dec 22, 2016 at 8:37 AM, Andre Rothe wrote: > I don't know, how mod_webobjects will read the request content, > but it seems, that my changes on the request are not transparent. > It is not a problem of the transmitted data,

Re: Change the content-length header for other filters

2016-12-22 Thread Andre Rothe
Hello, I've got the source code of mod_WebObjects, which is the destination module of the request. It registers a handler to process the incoming requests like ap_hook_handler(WebObjects_handler, NULL, NULL, APR_HOOK_MIDDLE); As I understand the Apache request processing, in this case the con

Re: Change the content-length header for other filters

2016-12-22 Thread Andre Rothe
Hi, I use mod_ext_filter, which I have modified for my use case. The input filter part reads now till the EOS over multiple chunks into a brigade, which is then propagated to an external filter (PHP script). The script returns the modified POST parameters, which contain less bytes then the ori