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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -