Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/10/2008, 03:57
jlsandoval17
 
Fecha de Ingreso: febrero-2007
Ubicación: Murcia
Mensajes: 34
Antigüedad: 17 años, 2 meses
Puntos: 3
Ayuda recorrer url´s con Curl

Hola, estoy tratando de analizar determinadas url´s de una web con Curl, el problema es que no siempre devuelve la web completa, alguien sabe a que se debe?
Los comandos de Curl que uso son estos:
$target_url = "http://www.ejemplo.es/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$html = curl_exec($ch);

Muchas gracias