![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
29/10/2008, 03:57
|
| | Fecha de Ingreso: febrero-2007 Ubicación: Murcia
Mensajes: 34
Antigüedad: 18 años 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 |