magento Check if current url is secure


Example

$isSecure = Mage::app()->getStore()->isCurrentlySecure();

This will return true if the current url is secure.