Welcome! Log In Create A New Profile

Advanced

Re: Modify request body before sending to upstream

January 27, 2015 01:20AM
Thanks!

I tried ngx_lua but I might've been doing something wrong. It complained that I am not allowed to use "proxy_pass" following a content rewrite.

To make it even simpler, here's a simplified example:

- curl -X POST --data "ABCD" localhost:8080
- an NGINX module that calls a custom C function to alter the string, say "a[1]+=5", so now we have "AGCD"
- send "AGBC" to upstream app
- respond with whatever the upstream responds (no filters beyond this)
Subject Author Posted

Modify request body before sending to upstream

abhinanda January 21, 2015 05:47AM

Re: Modify request body before sending to upstream

abhinanda January 26, 2015 10:08PM

Re: Modify request body before sending to upstream

mex January 27, 2015 01:10AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 01:20AM

Re: Modify request body before sending to upstream

mex January 27, 2015 01:29AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 02:06AM

Re: Modify request body before sending to upstream

abhinanda January 27, 2015 02:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready