Re: Parse response body and return status code/body based on it

2016-10-02 Thread Francis Daly
On Sat, Oct 01, 2016 at 07:08:44PM -0400, spacerobot wrote: Hi there, > I'm trying to achieve an mechanism that for requests to certain endpoints, > nginx makes a HTTP call to a certain server (mostly POST and DELETE), gets a > response back, parse the response code and body, and based on the res

Parse response body and return status code/body based on it

2016-10-01 Thread spacerobot
Hi nginx experts, I'm trying to achieve an mechanism that for requests to certain endpoints, nginx makes a HTTP call to a certain server (mostly POST and DELETE), gets a response back, parse the response code and body, and based on the response code and the content of the response body, return cer