Index: functions.php
===================================================================
--- functions.php	(revision 2597)
+++ functions.php	(working copy)
@@ -1859,7 +1859,15 @@
 }
 
 function wp_remote_fopen( $uri ) {
-	if ( function_exists('curl_init') ) {
+	if ( ini_get('allow_url_fopen') ) {
+		$fp = fopen( $uri, 'r' );
+		if ( !$fp )
+			return false;
+		$linea = '';
+		while( $remote_read = fread($fp, 4096) )
+			$linea .= $remote_read;
+		return $linea;
+	} else if ( function_exists('curl_init') ) {
 		$handle = curl_init();
 		curl_setopt ($handle, CURLOPT_URL, $uri);
 		curl_setopt ($handle, CURLOPT_CONNECTTIMEOUT, 1);
@@ -1868,13 +1876,7 @@
 		curl_close($handle);
 		return $buffer;
 	} else {
-		$fp = fopen( $uri, 'r' );
-		if ( !$fp )
-			return false;
-		$linea = '';
-		while( $remote_read = fread($fp, 4096) )
-			$linea .= $remote_read;
-		return $linea;
+		return false;
 	}	
 }
 
