Re: using location.capture to post a form

2014-09-18 Thread Yichun Zhang (agentzh)
Hello! On Thu, Sep 18, 2014 at 9:02 AM, jpsonweb wrote: > I was able to post the parameter from nginx by passing the arguments using > this. >local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST, > args = { pagelayout = dev_res_encoded }}); > You're passing your args via U

Re: using location.capture to post a form

2014-09-18 Thread jpsonweb
Thank you Yichun, I was able to post the parameter from nginx by passing the arguments using this. local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST, args = { pagelayout = dev_res_encoded }}); This works only when post parameter size is less than 81568 characters. When

Re: using location.capture to post a form

2014-09-16 Thread Yichun Zhang (agentzh)
Hello! On Tue, Sep 16, 2014 at 11:24 AM, jpsonweb wrote: > 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", { meth

using location.capture to post a form

2014-09-16 Thread jpsonweb
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 po