diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php
index 18f13e3ce1802a69fdb48d92381e7efddb58ebe9..a61be462618d1927173cb4d74742fece6e4cfa7d 100644
--- a/ecrire/inc/distant.php
+++ b/ecrire/inc/distant.php
@@ -655,7 +655,7 @@ function lance_requete($method, $scheme, $user, $host, $path, $port, $noproxy, $
 	if ($user) $user = urlencode($user[0]) . ":" . urlencode($user[1]);
 
 	if ($http_proxy){
-		$path = "$scheme://"
+		$path = (($scheme=='ssl') ? 'https://' : "$scheme://")
 			. (!$user ? '' : "$user@")
 			. "$host" . (($port!=80) ? ":$port" : "") . $path;
 		$t2 = @parse_url($http_proxy);