public static function getProtocolInformation()
    {
        if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) {
            return 'SERVER_PORT=443';
        }

        if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') {
            return 'X-Forwarded-Proto';
        }

        if (isset($_SERVER['HTTP_X_FORWARDED_SCHEME']) && strtolower($_SERVER['HTTP_X_FORWARDED_SCHEME']) == 'https') {
            return 'X-Forwarded-Scheme';
        }

        if (isset($_SERVER['HTTP_X_URL_SCHEME']) && strtolower($_SERVER['HTTP_X_URL_SCHEME']) == 'https') {
            return 'X-Url-Scheme';
        }

        return null;
    }
public static function getProtocolInformation()
    {
        if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) {
            return 'SERVER_PORT=443';
        }

        if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https') {
            return 'X-Forwarded-Proto';
        }

        if (isset($_SERVER['HTTP_X_FORWARDED_SCHEME']) && strtolower($_SERVER['HTTP_X_FORWARDED_SCHEME']) == 'https') {
            return 'X-Forwarded-Scheme';
        }

        if (isset($_SERVER['HTTP_X_URL_SCHEME']) && strtolower($_SERVER['HTTP_X_URL_SCHEME']) == 'https') {
            return 'X-Url-Scheme';
        }

        return null;
    }
public static function getProtocolInformation ( ) { if ( isset ( $ _SERVER [ 'SERVER_PORT' ] ) && $ _SERVER [ 'SERVER_PORT' ] == 443 ) { return 'SERVER_PORT=443' ; } if ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] ) && strtolower ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] ) == 'https' ) { return 'X-Forwarded-Proto' ; } if ( isset ( $ _SERVER [ 'HTTP_X_FORWARDED_SCHEME' ] ) && strtolower ( $ _SERVER [ 'HTTP_X_FORWARDED_SCHEME' ] ) == 'https' ) { return 'X-Forwarded-Scheme' ; } if ( isset ( $ _SERVER [ 'HTTP_X_URL_SCHEME' ] ) && strtolower ( $ _SERVER [ 'HTTP_X_URL_SCHEME' ] ) == 'https' ) { return 'X-Url-Scheme' ; } return null ; }
Get protocol information, with the exception of HTTPS

@return string protocol information
Get protocol information with the exception of HTTPS