Bug #550

Problème Check des mises à jour derrière un proxy

Added by moyo about 15 years ago. Updated about 15 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:moyo% Done:

0%

Category:Install / Update
Target version:0.68

Description

Voici le resultat de mes recherches

function proxy_url($proxy_url)
{
   $proxy_name = 'xxx.xxx.xxx.xxx'; // fonctionne également en mettant l'adresse IP
   $proxy_port = 8080; // numéro de port par exemple ici le 8080
   $proxy_user = "mon_login";   
   $proxy_pass = "mon_pass";   
   $proxy_cont = _; //laissez vide

   $proxy_fp = fsockopen($proxy_name, $proxy_port);
   if (!$proxy_fp)    {return false;}
   fputs($proxy_fp, "GET $proxy_url HTTP/1.0\r\nHost: $proxy_name\r\n");
   fputs($proxy_fp, "Proxy-Authorization: Basic " . base64_encode ("$proxy_user:$proxy_pass") . "\r\n\r\n");    // added
   while(!feof($proxy_fp)) {$proxy_cont .= fread($proxy_fp,4096);}
   fclose($proxy_fp);
   $proxy_cont = substr($proxy_cont, strpos($proxy_cont,"\r\n\r\n")+4);
   return $proxy_cont;
}

Il suffit ensuite de passer la fonction du style

proxy_url("http://glpi.indepnet.org/latest_version");

Pour les modifications en interne de GLPI, si les développeurs pouvez intégrer (SVP !!) ces paramètres, dans la configuration par exemple.
Cela serait utile pour les utilisateurs comme moi qui travaillent en internet derrière proxy sécurisé par authentification

History

#1 Updated by moyo about 15 years ago

  • Status changed from New to Closed

(In r3465) estion auto_update et proxy fixed #550

#2 Updated by moyo about 15 years ago

(In r3465) estion auto_update et proxy fixed #550

#3 Updated by moyo about 15 years ago

  • Status changed from Closed to Feedback

#4 Updated by moyo about 15 years ago

  • Status changed from Feedback to Closed

(In r3466) Gestion auto_update et proxy
fixed #550

#5 Updated by moyo about 15 years ago

  • Status changed from Closed to Feedback

#6 Updated by moyo about 15 years ago

  • Status changed from Feedback to New

#7 Updated by moyo about 15 years ago

  • Status changed from New to Closed

Also available in: Atom PDF