Welcome! Log In Create A New Profile

Advanced

Re: Extract headers/body from subrequests

agentzh
October 28, 2012 02:46PM
Hello!

On Sat, Oct 27, 2012 at 9:59 PM, R. Tyler Croy wrote:
>
> I'm using the auth_request module from Maxim Dounin as a basis for some of my
> experimenting.
>
> What I'm trying to do at the end of the day is bring a header from the response
> of a subrequest and feed it into the headers_in for the "main" request, but I
> can't figure how this works.
>
> The code I'm focused most on is in the ngx_http_auth_request_handler function:
>

You can take a look at how our ngx_lua and ngx_srcache modules do this:

http://wiki.nginx.org/HttpLuaModule#ngx.location.capture
http://wiki.nginx.org/HttpSRCacheModule#srcache_fetch

I think maybe you can just use ngx_lua's access_by_lua directly
without writing your own C module for your task ;)

Best regards,
-agentzh

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

Extract headers/body from subrequests

R. Tyler Croy 1282 October 28, 2012 01:00AM

Re: Extract headers/body from subrequests

agentzh 627 October 28, 2012 02:46PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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