diff --git a/standalone/rarbg/rarbg.php b/standalone/rarbg/rarbg.php index e52f924..97fbc04 100644 --- a/standalone/rarbg/rarbg.php +++ b/standalone/rarbg/rarbg.php @@ -32,8 +32,10 @@ function getCurl($sUrl, $bHeader=false, $asPostData=array()) //Cookies //$sCookies = $this->getCookies(); //if($sCookies!='') curl_setopt($oCurl, CURLOPT_COOKIE, $sCookies); - //curl_setopt($oCurl, CURLOPT_COOKIEJAR, $this->fCookieJar); - //curl_setopt($oCurl, CURLOPT_COOKIEFILE, $this->fCookieJar); + $fCookieJar = tempnam('/tmp','cookie'); + curl_setopt($oCurl, CURLOPT_COOKIESESSION, true); + curl_setopt($oCurl, CURLOPT_COOKIEJAR, $fCookieJar); + curl_setopt($oCurl, CURLOPT_COOKIEFILE, $fCookieJar); $sContent = curl_exec($oCurl);