protected function setDefaultOptions (string $cookieLocation='')
	{
		$cookie = $cookieLocation."cookie.txt";
		// MAKE IT RETURN RESULT INSTEAD OF DISPLAYING
		curl_setopt($this->curlHandle, CURLOPT_RETURNTRANSFER, TRUE);
		// MAKE IT REDIRECT
		curl_setopt($this->curlHandle, CURLOPT_FOLLOWLOCATION, TRUE);
		// SET THE SESSION OPTION
		curl_setopt($this->curlHandle, CURLOPT_COOKIESESSION , TRUE);
		// SET THE COOKIE FILE
		curl_setopt($this->curlHandle, CURLOPT_COOKIEFILE, $cookie);
		// SET THE COOKIE JAR FILE
		curl_setopt($this->curlHandle, CURLOPT_COOKIEJAR, $cookie);
	}
protected function setDefaultOptions (string $cookieLocation='')
	{
		$cookie = $cookieLocation."cookie.txt";
		// MAKE IT RETURN RESULT INSTEAD OF DISPLAYING
		curl_setopt($this->curlHandle, CURLOPT_RETURNTRANSFER, TRUE);
		// MAKE IT REDIRECT
		curl_setopt($this->curlHandle, CURLOPT_FOLLOWLOCATION, TRUE);
		// SET THE SESSION OPTION
		curl_setopt($this->curlHandle, CURLOPT_COOKIESESSION , TRUE);
		// SET THE COOKIE FILE
		curl_setopt($this->curlHandle, CURLOPT_COOKIEFILE, $cookie);
		// SET THE COOKIE JAR FILE
		curl_setopt($this->curlHandle, CURLOPT_COOKIEJAR, $cookie);
	}
protected function setDefaultOptions ( string $ cookieLocation = '' ) { $ cookie = $ cookieLocation . "cookie.txt" ; // MAKE IT RETURN RESULT INSTEAD OF DISPLAYING curl_setopt ( $ this -> curlHandle , CURLOPT_RETURNTRANSFER , TRUE ) ; // MAKE IT REDIRECT curl_setopt ( $ this -> curlHandle , CURLOPT_FOLLOWLOCATION , TRUE ) ; // SET THE SESSION OPTION curl_setopt ( $ this -> curlHandle , CURLOPT_COOKIESESSION , TRUE ) ; // SET THE COOKIE FILE curl_setopt ( $ this -> curlHandle , CURLOPT_COOKIEFILE , $ cookie ) ; // SET THE COOKIE JAR FILE curl_setopt ( $ this -> curlHandle , CURLOPT_COOKIEJAR , $ cookie ) ; }
Set default curl configurations
@param string $cookieLocation
Set default curl configurations