adding cookie jar
This commit is contained in:
1 parent
d596fc448a
commit
ebb6d9ab5f
1 file changed
+4
-2
@@ -32,8 +32,10 @@ function getCurl($sUrl, $bHeader=false, $asPostData=array())
|
|||||||
//Cookies
|
//Cookies
|
||||||
//$sCookies = $this->getCookies();
|
//$sCookies = $this->getCookies();
|
||||||
//if($sCookies!='') curl_setopt($oCurl, CURLOPT_COOKIE, $sCookies);
|
//if($sCookies!='') curl_setopt($oCurl, CURLOPT_COOKIE, $sCookies);
|
||||||
//curl_setopt($oCurl, CURLOPT_COOKIEJAR, $this->fCookieJar);
|
$fCookieJar = tempnam('/tmp','cookie');
|
||||||
//curl_setopt($oCurl, CURLOPT_COOKIEFILE, $this->fCookieJar);
|
curl_setopt($oCurl, CURLOPT_COOKIESESSION, true);
|
||||||
|
curl_setopt($oCurl, CURLOPT_COOKIEJAR, $fCookieJar);
|
||||||
|
curl_setopt($oCurl, CURLOPT_COOKIEFILE, $fCookieJar);
|
||||||
|
|
||||||
$sContent = curl_exec($oCurl);
|
$sContent = curl_exec($oCurl);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user