From: Dave Zaikos Date: Sun, 22 Jun 2014 05:08:57 +0000 (-0400) Subject: Added curl CURLOPT_NOBODY option in geturl function to ensure the HEAD method is... X-Git-Tag: 1.13~3^2~3^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0c019b4436c9ec224b23972a65aaf55aa03d5d57;p=tt-rss.git Added curl CURLOPT_NOBODY option in geturl function to ensure the HEAD method is used when resolving permanent/temporary URL moves. --- diff --git a/include/functions2.php b/include/functions2.php index d6a399ff..3e336724 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -2220,6 +2220,7 @@ curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0 Firefox/5.0'); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_HEADER, true); + curl_setopt($curl, CURLOPT_NOBODY, true); curl_setopt($curl, CURLOPT_REFERER, $url); curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate'); curl_setopt($curl, CURLOPT_AUTOREFERER, true);