Commit 61a6a6d2 authored by Denis Bonnenfant's avatar Denis Bonnenfant
Browse files

essai de passage du proxy curl

parent 462a9df0
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
<buildpathentry kind="src" path="src">
<attributes>
<attribute name="composer" value="source"/>
</attributes>
</buildpathentry>
</buildpath>
......@@ -433,6 +433,15 @@ class BigBlueButton
$this->jSessionId = $jSessionId;
}
/**
* @param array $curlopts
*/
public function setCurlOpt($curlopts)
{
$this->curlopts = $curlopts;
}
/* ____________________ INTERNAL CLASS METHODS ___________________ */
/**
......@@ -456,7 +465,9 @@ class BigBlueButton
// Needed to store the JSESSIONID
$cookiefile = tmpfile();
$cookiefilepath = stream_get_meta_data($cookiefile)['uri'];
foreach ($this->curlopts as $opt => $value){
curl_setopt($ch, $opt, $value);
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
curl_setopt($ch, CURLOPT_URL, $url);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment