thanks Maxim ! i very appreciate your help on this.
about the temp file - i protect from a response to be written to a file by knowing the max size that can be sent by the server and enlarging the proxy buffers accordingly.
i know i ruin the original request header - its the main purpose for my code ! i want to issue an independant subrequest to another server, no to to the original. but the r->main->... is not ruined and acting ok afterwards.
in any case, i ask you to support this subrequest mechasnim, its obviously needed to send a subrequest to any server, not just to the original one, and also to control its response instead of just adding it to the start/end of page, its alot more flexible.
can i use another mechanism in order to achive those goals ? to create a new upstream module ?
tnx
Gad