Skip to content
Extraits de code Groupes Projets
Valider 0bcf3a00 rédigé par mattab's avatar mattab
Parcourir les fichiers

Accept self serverd certif

parent 1db24141
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -273,7 +273,19 @@ class SettingsPiwik ...@@ -273,7 +273,19 @@ class SettingsPiwik
{ {
// Now testing if the webserver is running // Now testing if the webserver is running
try { try {
$fetched = Http::sendHttpRequest($piwikServerUrl, $timeout = 45); $fetched = Http::sendHttpRequestBy('curl',
$piwikServerUrl,
$timeout = 45,
$userAgent = null,
$destinationPath = null,
$file = null,
$followDepth = 0,
$acceptLanguage = false,
// Accept self signed certificates for now
$acceptInvalidSslCertificate = true
);
} catch (Exception $e) { } catch (Exception $e) {
$fetched = "ERROR fetching: " . $e->getMessage(); $fetched = "ERROR fetching: " . $e->getMessage();
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter