Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create special $request_body variables with new nginx module #10

Open
smorin opened this issue Dec 26, 2013 · 0 comments
Open

Create special $request_body variables with new nginx module #10

smorin opened this issue Dec 26, 2013 · 0 comments
Assignees

Comments

@smorin
Copy link
Member

smorin commented Dec 26, 2013

Basically there is the variable $request_body the is conditionally set.

I am looking to have our own module like

http://wiki.nginx.org/HttpEchoModule which has a directive echo_read_request_body which does this.

This will allow us to always have the data set in $request_body, but we are looking to have a new variable set. $raw_request_body, $decoded_request_body because usually $request_body when logged encodes from of the fields that are being submited so they are printable on a single log line. We want to have $raw_request_body represent the data send by the client with no encoding. We want to have $decoded_request_body represent the $raw_request but if submitted either with "application/x-www-form-urlencoded" or "multipart/form-data" be decoded to be the raw binary that was sent.

@ghost ghost assigned mehikmat Dec 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants