Welcome! Log In Create A New Profile

Advanced

How to modify POST Request body

Posted by bzImage 
How to modify POST Request body
September 19, 2014 03:39AM
Hi guys, i have a NGINX as a reverse proxy but i need to modify the request body of POST data.

Let's say that if the POST contains:


Content-Disposition: form-data; name="cargaPapeles2:fileCarga"; filename="eicar.com"

I need to change that to:

Content-Disposition: form-data; name="cargaPapeles2:fileCarga"; filename="thisfilehasavirus"

Before sending the request to the backend server.

There is any way to do that ?

According to the NGINX documentation it can modify requests and responses in a reverse proxy scenario.


"Request and Response Rewriting:

Any part of a request or response, including headers, body and URI can be modified"

How can i modify a POST request body ?


Thanks.



Edited 1 time(s). Last edit at 09/19/2014 03:40AM by bzImage.
Re: How to modify POST Request body
September 24, 2014 01:46PM
errr.. anyone ??

thanks..
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready