Except for a few headers that are handled specially, CGI stores the value of Header-Name:
in the environment variable HTTP_HEADER_NAME
. So, X-Forwarded-For
(if present in the request) should be found in $ENV{HTTP_X_FORWARDED_FOR}
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…