• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/httprequest.php
  • Класс: BitrixMainHttpRequest
  • Вызов: HttpRequest::isHttps
public function isHttps()
{
	if ($this->server->get("SERVER_PORT") == 443)
	{
		return true;
	}

	$https = $this->server->get("HTTPS");
	if ($https != '' && strtolower($https) != "off")
	{
		//From the PHP manual: Set to a non-empty value if the script was queried through the HTTPS protocol.
		//Note that when using ISAPI with IIS, the value will be off if the request was not made through the HTTPS protocol.
		return true;
	}

	return (ConfigConfiguration::getValue("https_request") === true);
}