Merge pull request #311 from fsateler/curl-cookie-jar
Enable cookies when fetching feeds with curl
This commit is contained in:
commit
29a57cdc4d
|
@ -378,6 +378,7 @@
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
curl_setopt($ch, CURLOPT_USERAGENT, SELF_USER_AGENT);
|
||||||
curl_setopt($ch, CURLOPT_ENCODING, "");
|
curl_setopt($ch, CURLOPT_ENCODING, "");
|
||||||
curl_setopt($ch, CURLOPT_REFERER, $url);
|
curl_setopt($ch, CURLOPT_REFERER, $url);
|
||||||
|
curl_setopt($ch, CURLOPT_COOKIEJAR, "/dev/null");
|
||||||
|
|
||||||
if (defined('_CURL_HTTP_PROXY')) {
|
if (defined('_CURL_HTTP_PROXY')) {
|
||||||
curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
|
curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
|
||||||
|
|
Loading…
Reference in New Issue