using location.capture to post a form

jpsonweb nginx-forum at nginx.us
Tue Sep 16 18:24:18 UTC 2014


Hi All,
 I am calling an webapplication from nginx.  I want to capture the response
and post the response body as a post parameter to another application. 
I am doing something like this

 

 local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST
,body =  "name = John"})

  The post goes through but receiving application does not get request
parameter.

Any suggestion would really be appreciated.

-Jyoti

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



More information about the nginx mailing list