# Modifying the request body

**URL:** <https://www.ruby-forum.com/t/modifying-the-request-body/238732>\
**Category:** NGINX\
**Created:** [January 26, 2014, 1:56pm UTC](https://www.ruby-forum.com/t/modifying-the-request-body/238732 "2014-01-26T13:56:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 26, 2014, 1:56pm UTC](https://www.ruby-forum.com/t/modifying-the-request-body/238732/1 "2014-01-26T13:56:23Z")

</div>

I have nginx deployed as a proxy server. The client sends a POST request  
which needs to be modified before forwarding it to the origin server. Is  
there any module / filter available in nginx. The best I could find was  
a patch by Maxim as outlined  
athttp://mailman.nginx.org/pipermail/nginx-devel/2013-March/003492.html.  
However, this appears to be incomplete. Please advise if there is  
anything that can be used to achieve the modification  
Thanks

---

<div class="post-metadata">

**Author:** ![Rv\_Rv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@Rv\_Rv](https://www.ruby-forum.com/u/Rv_Rv)\
**Post date:** [January 27, 2014, 1:38pm UTC](https://www.ruby-forum.com/t/modifying-the-request-body/238732/2 "2014-01-27T13:38:13Z")

</div>

Hello!

On Sun, Jan 26, 2014 at 08:55:18PM +0800, Rv Rv wrote:

> I have nginx deployed as a proxy server. The client sends a POST  
> request which needs to be modified before forwarding it to the  
> origin server. Is there any module / filter available in nginx.  
> The best I could find was a patch by Maxim as outlined  
> athttp://mailman.nginx.org/pipermail/nginx-devel/2013-March/003492.html.  
> However, this appears to be incomplete. Please advise if there  
> is anything that can be used to achieve the modification  
> Thanks

You may want to take a look at the proxy\_set\_body directive, see  
[Module ngx\_http\_proxy\_module](http://nginx.org/r/proxy_set_body).

–  
Maxim D.  
[http://nginx.org/](http://nginx.org/)
