How do I change the environmental variables HTTP_VIA & HTTP_FORWARDED? is there some kind of setenv function? can this be done without apache?
I've tried things such as using ENV etc. but it doesn't seem to work, maybe I need a whole different approach?
$_SERVER['HTTP_VIA'] and $_SERVER['HTTP_FORWARDED'] are sent by the web browser to your server as headers when making the request for a webpage. If you're trying to connect to another web server to make a post or request a webpage, and want to SEND HTTP_VIA or HTTP_FORWARDED headers, then how you do that depends on how you're making the connection -- by sockets, or with the cURL extension, or by executing cURL at the command line with exec(), etc.