Welcome! Log In Create A New Profile

Advanced

Extract headers/body from subrequests

R. Tyler Croy
October 28, 2012 01:00AM
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:

<http://mdounin.ru/hg/ngx_http_auth_request_module/file/a29d74804ff1/ngx_http_auth_request_module.c#l193>


Any pointers on how to fish data out of the subreqeusts would be most
appreciated :)

- R. Tyler Croy
--------------------------------------
Code: https://github.com/rtyler
Chatter: https://twitter.com/agentdero
_______________________________________________
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 1281 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: 185
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