Ruby Forum NGINX > Post processing with Perl?

Posted by Iikka Niinivaara (Guest)
on 18.08.2008 14:51
(Received via mailing list)
Hi guys,

I'm trying to do some fairly complex post processing to the body of a
response of a proxied request. Since sub_filter only supports one
rule per location and doesn't support regexp's at all (why hasn't
anyone fixed this?), I'm looking at using the embedded Perl
functionality to do what I want. To my disappointment, I couldn't see
any info about post processing the client body in the documentation.

Can anyone tell me if this is possible at all, and if so, give me
some pointers to get started?

Thanks,
Iikka
Posted by Igor Sysoev (Guest)
on 18.08.2008 15:23
(Received via mailing list)
On Mon, Aug 18, 2008 at 03:33:04PM +0300, Iikka Niinivaara wrote:

> I'm trying to do some fairly complex post processing to the body of a  
> response of a proxied request. Since sub_filter only supports one  
> rule per location and doesn't support regexp's at all (why hasn't  
> anyone fixed this?), I'm looking at using the embedded Perl  
> functionality to do what I want. To my disappointment, I couldn't see  
> any info about post processing the client body in the documentation.
> 
> Can anyone tell me if this is possible at all, and if so, give me  
> some pointers to get started?

No, currently no way to process response or proxied body in perl.