Added auto-detection for HTTPS support (requires LWP::Protocol::https)