function flickr_curl_set_cookie_settings in Flickr 7
Set default cookie settings.
Parameters
array $options [reference]: Options array
object $ch [reference]: cURL Object
1 call to flickr_curl_set_cookie_settings()
- flickr_curl_http_request in ./
flickr.inc - Performs an HTTP request over cURL. Taken from http://cgit.drupalcode.org/chr/tree/chr.module.
File
- ./
flickr.inc, line 2218 - The Flickr API functions.
Code
function flickr_curl_set_cookie_settings(&$options, &$ch) {
// Set cookie settings.
if ($options['cookiefile']) {
curl_setopt($ch, CURLOPT_COOKIEJAR, $options['cookiefile']);
curl_setopt($ch, CURLOPT_COOKIEFILE, $options['cookiefile']);
}
}