diff --git a/lib/url.c b/lib/url.c
index 406c1f0..421da22 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4047,6 +4047,8 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data,
         protop = "smtp";
       else if(checkprefix("POP3.", conn->host.name))
         protop = "pop3";
+      else if (data->set.use_ssl)
+        protop = "https";
       else {
         protop = "http";
       }

