如何在nginx mod_perl中获得http_referer

问题描述 投票:1回答:1

我有一个nginx mod perl模块,该模块获取数据并根据参数采取措施在我的脚本中,我无法获取http Referer

我正在尝试

$r->header_in("http_referer")   # Gives an undefined string
$r->headers_in()    # func not defined

如何获取我的函数内部的HTTP客户端传递的所有标头

perl nginx mod-perl
1个回答
0
投票
$r->header_in("http_referer")   # Gives an undefined string
© www.soinside.com 2019 - 2024. All rights reserved.