How to make a post subrequest with response body from parent?.

edo888 nginx-forum at nginx.us
Mon Feb 27 19:29:20 UTC 2012


Hi,

Just in case someone will find this in google. I have found a solution.

You will need to populate sr->request_body->bufs and then make sure to
set sr->headers_in.content_length_n...

You can check the http echo module subrequest.c file and see how it sets
the content length.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,222983,223071#msg-223071



More information about the nginx mailing list