Welcome! Log In Create A New Profile

Advanced

Re: Sub-request using Parent Request Body

agentzh
January 04, 2011 01:28AM
On Tue, Jan 4, 2011 at 11:51 AM, Roman Vasilyev <roman@anchorfree.com> wrote:
>
> This module was from which I begun. Originally I saved all input data into
> variable and tried to pass it into fastcgi subrequest, unfortunately when
> I'm passing this variable in subrequest request_body is already empty,

How did you pass this variable into your subrequest? It looks weird to me :)

> because subrequest have empty request_body, that's was the reason why I'm
> trying to pass request_body to subrequest. May be people here tried other
> variants or have some ideas to have good quality of post analysis
> internally?

I don't think it's a good idea to use subrequests here just for post
body analysis. A rewrite phase or post access phase handler seems
rather sufficient to me.

Passing request bodies to a subrequest is as simple as passing
r->request_body->bufs to sr->request_body->bufs.

Cheers,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Sub-request using Parent Request Body

Roman Vasilyev January 03, 2011 10:00PM

Re: Sub-request using Parent Request Body

agentzh January 03, 2011 10:22PM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 03, 2011 10:54PM

Re: Sub-request using Parent Request Body

agentzh January 04, 2011 01:28AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 04, 2011 07:24PM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:06AM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:08AM

Re: Sub-request using Parent Request Body

agentzh January 06, 2011 12:16AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 06, 2011 07:38PM

Re: Sub-request using Parent Request Body

Adrian Janeczek January 06, 2011 07:38PM

Re: Sub-request using Parent Request Body

agentzh January 07, 2011 01:40AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 07, 2011 03:18PM

Re: Sub-request using Parent Request Body

agentzh January 08, 2011 02:26AM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 10, 2011 02:42PM

Re: Sub-request using Parent Request Body

Roman Vasilyev January 10, 2011 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready