diff --git a/modules/feeds/libraries/http_request.inc b/modules/feeds/libraries/http_request.inc index 4fb91bc..54d3b23 100644 --- a/modules/feeds/libraries/http_request.inc +++ b/modules/feeds/libraries/http_request.inc @@ -181,6 +181,10 @@ function http_request_get($url, $username = NULL, $password = NULL, $accept_inva if ($accept_invalid_cert) { curl_setopt($download, CURLOPT_SSL_VERIFYPEER, 0); } + //For some reason on drup-dev and production curl over IPv6 + //(which is default) hangs about half the time, this is avoided + //by hardcoding curl to always use IPv4 + curl_setopt($download, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); $header = ''; $data = curl_exec($download); if (curl_error($download)) {