I am unable to post to a form using ngx.location.capture. I am following up on this group per direction from
Yichun Zhang (agentzh). The original post is on http://forum.nginx.org/read.php?2,253311,253311#msg-253311
Yichun - Thank you for your response,. Here is what I tried
ngx.header["Content-Type"]="application/x-www-form-urlencoded"
1. local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST ,body = "name = John&"})
2.local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST ,body = "name = John"})
3.local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST ,body = 'name = John'})
none of the 1, 2 or 3 above work. The receiving J2EE web application does not get the parameter name and the value
Thank you
Jyothi