how to get response headers from internal-requests?
arteomp
nginx-forum at nginx.us
Tue Jun 10 01:30:06 UTC 2014
Hello,
http://wiki.nginx.org/HttpLuaModule#ngx.location.capture
res.header holds all the response headers of the subrequest and it is a
normal Lua table. For multi-value response headers, the value is a Lua
(array) table that holds all the values in the order that they appear. For
instance, if the subrequest response headers contain the following lines:
Set-Cookie: a=3
Set-Cookie: foo=bar
Set-Cookie: baz=blah
Then res.header["Set-Cookie"] will be evaluated to the table value {"a=3",
"foo=bar", "baz=blah"}.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250749,250751#msg-250751
More information about the nginx
mailing list