# Post processing with Perl?

**URL:** <https://www.ruby-forum.com/t/post-processing-with-perl/146145>\
**Category:** NGINX\
**Created:** [August 18, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/post-processing-with-perl/146145 "2008-08-18T14:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iikka\_Niinivaara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d07c76/32.png) [@Iikka\_Niinivaara](https://www.ruby-forum.com/u/Iikka_Niinivaara)\
**Post date:** [August 18, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/post-processing-with-perl/146145/1 "2008-08-18T14:51:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Iikka\_Niinivaara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/d07c76/32.png) [@Iikka\_Niinivaara](https://www.ruby-forum.com/u/Iikka_Niinivaara)\
**Post date:** [August 18, 2008, 3:23pm UTC](https://www.ruby-forum.com/t/post-processing-with-perl/146145/2 "2008-08-18T15:23:09Z")

</div>

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.
