Re: http vs https

From: Date: Sat, 23 Jan 2010 17:44:57 +0000
Subject: Re: http vs https
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-301384@lists.php.net to get a copy of this message
Ben Miller wrote: > Is there a PHP function that will return whether the request was http or > https? I have functions that need to cURL other servers - sometimes over > SSL, sometimes not, depending whether the function is called from > http://www.mydomain.com/script_that_calls_function.php or > https://www.mydomain.com/script_that_calls_function.php > > Hope the question is clear. Thanks, > $_SERVER['HTTPS'] Set to a non-empty value if the script was queried through the HTTPS protocol.

« previous php.general (#301384) next »