Welcome! Log In Create A New Profile

Advanced

using location.capture to post a form

September 16, 2014 02:24PM
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
Subject Author Posted

using location.capture to post a form

jpsonweb September 16, 2014 02:24PM

Re: using location.capture to post a form

Yichun Zhang (agentzh) September 16, 2014 02:52PM

Re: using location.capture to post a form

jpsonweb September 18, 2014 12:02PM

Re: using location.capture to post a form

Yichun Zhang (agentzh) September 18, 2014 01:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready