apache - How to fetch HTTP headers in perl when using CGI -
i'm using perl/cgi/apache , want fetch x-forwarded-for http header. how do that?
except few headers handled specially, cgi stores value of header-name: in environment variable http_header_name. so, x-forwarded-for (if present in request) should found in $env{http_x_forwarded_for}.
Comments
Post a Comment