diff --git a/src/Feed.php b/src/Feed.php index 3a59c27..c00c761 100644 --- a/src/Feed.php +++ b/src/Feed.php @@ -216,6 +216,11 @@ private static function httpRequest($url, $user, $pass) curl_setopt($curl, CURLOPT_USERAGENT, self::$userAgent); // some feeds require a user agent curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_TIMEOUT, 20); + + if (defined('CURLOPT_IPRESOLVE') && defined('CURL_IPRESOLVE_V4')) { + curl_setopt($curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); + } + curl_setopt($curl, CURLOPT_ENCODING, ''); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // no echo, just return result curl_setopt($curl, CURLOPT_USERAGENT, '');