HTTP_VIA environment variable not set

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jazzmaka
Forum Newbie
Posts: 1
Joined: Wed Aug 04, 2004 7:50 am

HTTP_VIA environment variable not set

Post by jazzmaka »

i'm running apache 2/php 4.3.3 on my home webserver. i want to add a php page with a proxy test. various available sources explain how to use $REMOTE_ADDR, $HTTP_VIA, $HTTP_X_FORWARDED_FOR and other $HTTP_ variables, so far i know what to do.

however, while i can read $REMOTE_ADDR in php-scripts, i cannot read any of the relevant $HTTP_variables. Also my phpinfo() does not show any of the relevant $HTTP_variables (the phpinfo() on other servers does).
I tried to read the $HTTP_variables in all possible and impossible ways, $_GET, $_POST, $_SERVER and $_Whattaheck. my register_globals in php.ini is ON.

i connect from my company browser which is behind a proxy, and the proxy indeed sends the relevant information in the HTTP headers, which i verified by connecting to various proxy testing sites on the web. only my *&//%!! server does not evaluate the http_* fields.

i assume i'm missing some sort of apache/php config ??
can anybody help??
jazzmaka
Post Reply