Welcome! Log In Create A New Profile

Advanced

Can NGINX add an empty payload

August 08, 2014 12:49PM
Hello

I have taken the NGINX training but the following question was not covered. I am hoping I can get some help from the community. Thank you in advance.

Can NGINX add empty (or static non empty) payload to a request when proxying to a server in the Location directive (or elsewhere)

For example

Client => NGINX => Server

Client sends http://example.com/some/path
NGINX adds -d '{"version": "1.1"}' -H "Content-Type: application/json"
Server receives http://example.com/some/path -d '{"version": "1.1"}' -H "Content-Type: application/json"

The reason why I am asking is because I have a client that sends requests without payload and the server expects that payload exists (even if it does not get processed)

Thank you for your help
Subject Author Posted

Can NGINX add an empty payload

matt_l August 08, 2014 12:49PM

Re: Can NGINX add an empty payload

Maxim Dounin August 08, 2014 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 273
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready