Welcome! Log In Create A New Profile

Advanced

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz
March 15, 2011 06:20PM
Hello,

any chance to debug the -f function? I use the debug log, but get no
information about the file... /body1
shows me "test" but /body2 shows nothing... no error, no body content...

location /body1 {
echo_subrequest POST /sub -b 'test';
}

location /body2 {
echo_subrequest POST /sub -f /tmp/hello.txt;
}

location /sub {
echo "body: $echo_request_body";
}

Thanks for your help.

Alexander





On 10.03.2011 10:34, agentzh wrote:
> On Thu, Mar 10, 2011 at 5:01 PM, Elena Zwetkow<ezwetkow@gmx.de> wrote:
>> Thanks so much for the detailed information.
>>
>> Storing uploaded data nonblocking sounds not so easy... What do you think about a solution sending data as base64 encoded sting, then i can use your form-input addon and send this data directly to redis?
>>
> When your data is small enough to be hold in RAM, just use ngx_lua as
> the glue. Use
>
> lua_need_request_body on in nginx.conf
> + client_body_in_single_buffer on in nginx.conf
> + ngx.var.request_body + ngx.decode_base64() +
> ngx.location.capture() in Lua
> + ngx_redis2 in nginx.conf
>
> Then it'll no longer block on disk operations because no disk
> operations will be involved.
>
> Cheers,
> -agentzh
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


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

Use nginx to call shell script - simplest way?

J2R March 08, 2011 07:12AM

Re: Use nginx to call shell script - simplest way?

agentzh March 08, 2011 07:22AM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 01:52PM

Re: Use nginx to call shell script - simplest way?

Richard Kearsley March 09, 2011 02:18PM

Re: Use nginx to call shell script - simplest way?

J2R March 09, 2011 03:48PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:42PM

Re: Use nginx to call shell script - simplest way?

agentzh March 09, 2011 10:56PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 03:20AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 03:32AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Elena Zwetkow March 10, 2011 04:06AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 10, 2011 04:36AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 15, 2011 06:20PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 15, 2011 10:32PM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

Alexander Kunz March 16, 2011 03:26AM

Re: [ANN] ngx_echo v0.35: ability to POST/PUT local files as subrequest bodies

agentzh March 16, 2011 03:40AM

Re: Use nginx to call shell script - simplest way?

António P. P. Almeida March 08, 2011 02:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
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