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.
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.