Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/09/2008, 06:27
Avatar de hawaiian050
hawaiian050
 
Fecha de Ingreso: junio-2007
Mensajes: 285
Antigüedad: 16 años, 10 meses
Puntos: 2
POST curl simple - AYUDA

Hola,

Estoy haciendo un post para resolver una ruta ip pero no me funciona , alguien me ayuda ?

Código PHP:
<?php  

$ch 
curl_init(); 

curl_setopt($chCURLOPT_URL,"http://whatismyipaddress.com/staticpages/index.php/tools-traceroute-result"); 
curl_setopt($chCURLOPT_POSTTRUE); 
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE); 
curl_setopt($chCURLOPT_POSTFIELDS$_POST['LOOKUPADDRESS']); 

echo 
$content curl_exec ($ch); 
curl_close ($ch);   

  
?> 
<form action="" method="post"> 
  <input type="text" name="LOOKUPADDRESS" value="190.134.164.19" size="20" /> 
  <input type="submit" name="Lookup IP Address" value="Lookup IP Address" /> 
</form>

MENSAJE : No User-Agent
Your browser, plug-in, or script is not passing a user-agent string. Unfortunately due to continued abuse we cannot serve the requested page to you. Please try using a different [email protected] to properly configure your Dynamic DNS client.1


Saludos y gracias .

Última edición por hawaiian050; 24/09/2008 a las 12:18