Foros del Web » Programando para Internet » PHP »

Curl y URIBL

Estas en el tema de Curl y URIBL en el foro de PHP en Foros del Web. Intento recibir la pagina https://admin.uribl.com desde mi script pero se queda "conectando" indefinidamente. ¿Alguna idea? Gracias de antemano y muy buen foro. Código PHP: $url  ...
  #1 (permalink)  
Antiguo 08/02/2012, 03:23
 
Fecha de Ingreso: abril-2010
Mensajes: 26
Antigüedad: 14 años
Puntos: 0
Pregunta Curl y URIBL

Intento recibir la pagina https://admin.uribl.com desde mi script pero se queda "conectando" indefinidamente. ¿Alguna idea?

Gracias de antemano y muy buen foro.

Código PHP:
$url "https://admin.uribl.com/?section=lookup;";
$handler curl_init();  
curl_setopt($handlerCURLOPT_URL$url);  
curl_setopt($handlerCURLOPT_RETURNTRANSFER1);
curl_setopt($handlerCURLOPT_FOLLOWLOCATION1);
curl_setopt($handlerCURLOPT_SSL_VERIFYPEER0);
curl_setopt($handlerCURLOPT_SSL_VERIFYHOST0);

$response curl_exec($handler);
echo 
$response;
curl_close($handler); 
  #2 (permalink)  
Antiguo 08/02/2012, 07:53
Avatar de ZiTAL  
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 20 años, 2 meses
Puntos: 62
Respuesta: Curl y URIBL

a mí me llega vacio
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan
  #3 (permalink)  
Antiguo 08/02/2012, 08:27
Avatar de ZiTAL  
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 20 años, 2 meses
Puntos: 62
Respuesta: Curl y URIBL

engañale cambiandole el user agent, a mí me ha funcionado:

Código PHP:
curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13'); 
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan

Etiquetas: curl
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:58.