I was able to get this working not sure whether it is correct
ngx.location.capture('/test', {method = ngx.HTTP_POST, body="from=maanas%40maanas.co&to=m4manas%40gmail.com&subject=This%20is%20test%20mail%20from%20nginx%22&text=This%20is%20great%20mail%20send%20from%20nginx%20subrequets%0A"})
On Sunday, December 23, 2012 1:46:51 AM UTC+5:30, Maanas wrote:
Hi there,I m trying to issue a POST request to a endpoint. I want to modify and add POST variables in the request. I m unable to achieve the same. Can this be done. I tried method = ngx.HTTP_POST but it does not works.
Thanks