[module.cas] PUT is so slow.. timeout (CAS server not responding in consistent time)
This commit is contained in:
parent
100b09c695
commit
46ba44d042
|
@ -181,14 +181,13 @@ class casController{
|
||||||
/* (1) Call logout script
|
/* (1) Call logout script
|
||||||
---------------------------------------------------------*/
|
---------------------------------------------------------*/
|
||||||
/* (1) Build useful variables */
|
/* (1) Build useful variables */
|
||||||
$service = ($_SERVER['SERVER_NAME'] == 'ptut.com' ) ? 'http' : 'https';
|
$logout_url = "https://sso.univ-pau.fr/cas/logout";
|
||||||
$service .= '://'.$_SERVER['HTTP_HOST'].'/api/v/1.0/cas';
|
|
||||||
$logout_url = "https://sso.univ-pau.fr/cas/logout?service=$service";
|
|
||||||
|
|
||||||
/* (2) Configure & Prepare CURL */
|
/* (2) Configure & Prepare CURL */
|
||||||
$ch = \curl_init();
|
$ch = \curl_init();
|
||||||
|
|
||||||
\curl_setopt($ch, CURLOPT_URL, $logout_url);
|
\curl_setopt($ch, CURLOPT_URL, $logout_url);
|
||||||
|
\curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
|
||||||
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
|
||||||
/* (3) Execute CURL & Close it */
|
/* (3) Execute CURL & Close it */
|
||||||
|
|
Loading…
Reference in New Issue