Fixes for connection to HTTPS urls.