note 126926 added to reserved.variables.server

From: Date: Tue, 15 Mar 2022 09:17:23 +0000
Subject: note 126926 added to reserved.variables.server
Groups: php.notes 
Request: Send a blank email to php-notes+get-217723@lists.php.net to get a copy of this message
If you need to know the protocol (http or https) used by the client, then the $_SERVER['HTTPS'] variable may not actually report the truth if your server is behind a proxy or a load balancer (In fact the client could connect to the load balancer using https, and then the load balancer forward the request to the server using http). If the proxy/load balancer is correctly configured it could send the original request protocol in a header, and you will find it in the $_SERVER[HTTP_X_FORWARDED_PROTO] variable. ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.135 (proxied: 37.183.206.67) ---- Manual Page -- https://php.net/manual/en/reserved.variables.server.php Edit -- https://main.php.net/note/edit/126926 Del: integrated -- https://main.php.net/note/delete/126926/integrated Del: useless -- https://main.php.net/note/delete/126926/useless Del: bad code -- https://main.php.net/note/delete/126926/bad+code Del: spam -- https://main.php.net/note/delete/126926/spam Del: non-english -- https://main.php.net/note/delete/126926/non-english Del: in docs -- https://main.php.net/note/delete/126926/in+docs Del: other reasons-- https://main.php.net/note/delete/126926 Reject -- https://main.php.net/note/reject/126926 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217723) next »