diff --git a/feed.class.php b/feed.class.php index 02a126c..f8df9ac 100644 --- a/feed.class.php +++ b/feed.class.php @@ -172,6 +172,7 @@ private static function httpRequest($url, $user, $pass) curl_setopt($curl, CURLOPT_HEADER, FALSE); curl_setopt($curl, CURLOPT_TIMEOUT, 20); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); // no echo, just return result + curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); // sometime is useful :) $result = curl_exec($curl); $ok = curl_errno($curl) === 0 && curl_getinfo($curl, CURLINFO_HTTP_CODE) === 200; } @@ -219,4 +220,4 @@ private static function adjustNamespaces($el) */ class FeedException extends Exception { -} \ No newline at end of file +}